Skip to content

Commit

Permalink
Push container to ghcr.io location scoped to the repository. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab authored Mar 11, 2024
1 parent 30eccb4 commit af0ee07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
workflow_dispatch:

env:
TAG_NAME: ghcr.io/gsa-tts/tts-10x-atj-dev/doj-demo:latest
TAG_NAME: ${{ github.ref_name }}
REGISTRY: ghcr.io/${{ github.repository }}

jobs:
init-deploy:
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
uses: actions/checkout@v3

- name: Build container image
run: docker build . --platform linux/amd64 --target doj-demo --tag ${TAG_NAME}
run: docker build . --platform linux/amd64 --target doj-demo --tag ${REGISTRY}/doj-demo:${TAG_NAME}

- name: Log in to the Container registry
uses: docker/login-action@v2
Expand All @@ -66,7 +67,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to container registry
run: docker push ${TAG_NAME}
run: docker push ${REGISTRY}/doj-demo:${TAG_NAME}

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit af0ee07

Please sign in to comment.