Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change ecr env var to avoid clash #318

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading