Skip to content

Commit

Permalink
Release two versions of container: dev and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtrafford committed Nov 21, 2024
1 parent 5a51a67 commit 29e1f19
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/_container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,35 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Rebuild and release image
uses: docker/build-push-action@v2
- name: Rebuild and release CI image
uses: docker/build-push-action@v5
with:
context: .
file: ./PandABlocks-rootfs/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
push: ${{ github.event_name != 'pull_request' }}
target: developer

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/pandablocks/pandablocks-ci-container
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest
- name: Rebuild and release image
uses: docker/build-push-action@v5
with:
context: .
file: ./PandABlocks-rootfs/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
push: ${{ github.event_name != 'pull_request' }}

0 comments on commit 29e1f19

Please sign in to comment.