Skip to content

Commit

Permalink
build: push to ghcr and docker-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik committed Jan 7, 2025
1 parent 496419f commit cdcb89e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Determine tag
id: determine_tag
run: |
Expand All @@ -46,6 +53,8 @@ jobs:
tags: |
rtuszik/photon-docker:${{ env.RELEASE_TAG }}
rtuszik/photon-docker:latest
ghcr.io/rtuszik/photon-docker:${{ env.RELEASE_TAG }}
ghcr.io/rtuszik/photon-docker:latest
platforms: linux/amd64,linux/arm64

- name: Store the latest release
Expand Down

0 comments on commit cdcb89e

Please sign in to comment.