Skip to content

Commit

Permalink
CI: use GITHUB_TOKEN for pushing container
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Aug 4, 2023
1 parent e518a31 commit 8eda592
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/images-creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
run: docker images
- name: login and push
env:
deploy_secret: ${{ secrets.CR_PAT }}
deploy_secret: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ ! -z ${deploy_secret} ]; then
echo ${{ secrets.CR_PAT }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin;
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin;
docker push ghcr.io/aidasoft/${{ matrix.image }}:latest;
else
echo "Skipping deploy no secrets present";
Expand Down Expand Up @@ -69,10 +69,10 @@ jobs:
run: docker images
- name: login and push
env:
deploy_secret: ${{ secrets.CR_PAT }}
deploy_secret: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ ! -z ${deploy_secret} ]; then
echo ${{ secrets.CR_PAT }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin;
if [ ! -z ${{ deploy_secret }} ]; then
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin;
docker push ghcr.io/aidasoft/coverity:latest;
else
echo "Skipping deploy no secrets present";
Expand Down

0 comments on commit 8eda592

Please sign in to comment.