Skip to content

Commit

Permalink
fix: change ecr env var to avoid clash
Browse files Browse the repository at this point in the history
this was supposed to allow dry-run vs run on main but got this error Error: authenticating creds for true: pinging container registry true: Get https://true/v2/: dial tcp: lookup true: Temporary failure in name resolution
  • Loading branch information
Mossman1215 authored and ardrigh committed Sep 6, 2024
1 parent 95a1055 commit 81febdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
GHCR_TOKEN: ${{ secrets.GH_CI_USER_TOKEN }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
DOCKER_USER: geonetci
ECR: ${{ github.ref_name == 'main' || 'FALSE' }}
RUN_ECR: ${{ github.ref_name == 'main' || 'FALSE' }}
run: |
auth_tmp=$(mktemp)
echo '{}' > $auth_tmp # JSON formating is required
echo -n $GHCR_TOKEN | podman login --authfile=$auth_tmp -u $GHCR_USER --password-stdin ghcr.io
echo -n $DOCKER_TOKEN | podman login --authfile=$auth_tmp -u $DOCKER_USER --password-stdin docker.io
if [ "$ECR" != "FALSE" ]; then
if [ "$RUN_ECR" != "FALSE" ]; then
aws ecr get-login-password --region ap-southeast-2 | podman login "$ECR" -u AWS --password-stdin
fi
podman secret create skopeo-auth $auth_tmp
Expand Down

0 comments on commit 81febdf

Please sign in to comment.