Skip to content

Commit

Permalink
Tags, caching and arm64 build in the last app rebuild stage
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshashar committed Jun 28, 2023
1 parent 333dff3 commit 9b69f71
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pytest-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,24 @@ jobs:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage/funnel.lcov
flag-name: docker-3.11
- name: Set short git commit SHA
if: ${{ github.ref_name == 'main' || github.ref_name == 'docker' }}
id: sha
run: |
short_sha=$(git rev-parse --short ${{ github.sha }})
echo "::set-output name=short::$short_sha"
- name: Build funnel image
if: ${{ github.ref_name == 'main' || github.ref_name == 'docker' }}
id: build-funnel
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
target: app
tags: funnel
platforms: linux/amd64,linux/arm64
tags: |
hasgeek/funnel:${{ github.ref_name }}
hasgeek/funnel:sha-${{ steps.sha.outputs.short }}
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 9b69f71

Please sign in to comment.