Skip to content

Commit

Permalink
Adding dev pipeline and caching
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrink committed Dec 3, 2023
1 parent 219d31a commit 71ebe2b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 7 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docker-image-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docker Image CI - Dev

on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "master"
pull_request:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/arm/v7,linux/arm64/v8
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{github.repository}}
# generate Docker tags based on the following events/attributes
tags: |
# set dev tag for default branch
type=raw,value=dev,enable={{is_default_branch}}
type=schedule,pattern=nightly
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm/v7,linux/arm64/v8
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
7 changes: 0 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
name: Docker Image CI

on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "master"
tags:
- "v*.*.*"
pull_request:
branches:
- "master"

jobs:
build:
Expand Down

0 comments on commit 71ebe2b

Please sign in to comment.