Skip to content

Commit

Permalink
Also push latest to ghcr.io on main builds (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
  • Loading branch information
hairyhenderson authored Jan 29, 2024
1 parent 4531bc8 commit fd456b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
set -x
make docker-multi COMMIT=${{ github.sha }} DOCKER_REPO=${src_repo} BUILDX_ACTION=--push
set -x
docker buildx imagetools create -t ghcr.io/hairyhenderson/${IMG_NAME}:latest ${src_repo}:latest
docker buildx imagetools create -t ghcr.io/hairyhenderson/${IMG_NAME}:alpine ${src_repo}:alpine
if: github.repository == 'hairyhenderson/sagemcom_fast_exporter' && (github.ref == 'refs/heads/main' || env.is_tag == 'true')
- name: Push (tagged release)
run: |
Expand Down

0 comments on commit fd456b2

Please sign in to comment.