Skip to content

Commit

Permalink
Add ghcr (#570)
Browse files Browse the repository at this point in the history
* Add ghcr

* Update docker-push-called.yml
  • Loading branch information
p-hoffmann authored Jan 11, 2025
1 parent 16ad640 commit 6ae7afd
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/docker-push-called.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,27 @@ jobs:
ref: ${{ env.GIT_BRANCH_NAME }}
repository: ${{ env.GIT_REPO_FULL_NAME }}
token: ${{ secrets.CI_PAT }}


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

- name: Build and push
uses: docker/build-push-action@v6
if: ${{ env.DOCKER_BUILD_DISABLE != 'true' }}
with:
builder: ${{ steps.builder.outputs.name }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# ulimit: nofile=1048576:1048576
platforms: "linux/amd64"
context: ${{ env.DOCKER_BUILD_CONTEXT_PATH }}
file: ${{ env.DOCKER_BUILD_FILE_PATH }}
tags: ghcr.io/data2evidence/${{ env.AZ_REG_REPOSITORY }}:${{ env.DOCKER_IMG_TAG_NAME }}

- name: Login to ACR
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 6ae7afd

Please sign in to comment.