Skip to content

Commit

Permalink
Update container.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
callumforrester authored Mar 14, 2022
1 parent c9c282d commit aa1d1fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


name: Container CI

on:
Expand Down Expand Up @@ -46,14 +48,18 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- id: read-docker-image-identifiers
name: Read Docker Image Identifiers
run: echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Run build (base container)
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.output.name }}
push: true
tags: |
ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ steps.tagger.outputs.image_tag }}
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.tagger.outputs.image_tag }}
target: base
cache-from: type=local,src=~/cache
cache-to: type=local,dest=~/cache

0 comments on commit aa1d1fc

Please sign in to comment.