Skip to content

Commit

Permalink
Fix container build (#60)
Browse files Browse the repository at this point in the history
Github wouldn't let the CI job push to the container repo. Have fixed using this example: https://github.com/epics-containers/ioc-pmac/blob/main/.github/workflows/ioc_build.yml
  • Loading branch information
callumforrester authored Feb 10, 2022
1 parent 13355b5 commit 00bb013
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:

- name: Generate image tags
id: tagger
uses: docker/metadata-action@v3
with:
images: dls-controls/tickit
tags: |
type=sha
type=ref,event=tag
run: |
# tag is branch name or tag if there is a tag
echo ::set-output name=image_tag::${GITHUB_REF##*/}
echo ::set-output name=do_push::true
- name: Cache Docker layers
uses: actions/cache@v2
Expand Down Expand Up @@ -69,7 +67,8 @@ jobs:
with:
builder: ${{ steps.buildx.output.name }}
push: true
tags: ghcr.io/${{ steps.tagger.outputs.tags }}
tags: |
ghcr.io/${{ github.repository }}:${{ steps.tagger.outputs.image_tag }}
target: runtime
cache-from: type=local,src=~/cache
cache-to: type=local,dest=~/cache
Expand All @@ -79,7 +78,8 @@ jobs:
with:
builder: ${{ steps.buildx.output.name }}
push: true
tags: ghcr.io/${{ steps.tagger.outputs.tags }}_dev
tags: |
ghcr.io/${{ github.repository }}:${{ steps.tagger.outputs.image_tag }}.dev
target: developer
cache-from: type=local,src=~/cache
cache-to: type=local,dest=~/cache

0 comments on commit 00bb013

Please sign in to comment.