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

[.github] add hints to test locally and prevent parsing failures for the first run #1122

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

kylos101
Copy link
Collaborator

@kylos101 kylos101 commented Jul 12, 2023

How to test

export GITHUB_ENV=$(mktemp)
SKOPEO_AUTH_FILE=$(mktemp)

cat <<EOF | sudo tee /usr/local/bin/skopeo > /dev/null
#/bin/bash

docker run --rm -v $SKOPEO_AUTH_FILE:/skopeo.auth -e REGISTRY_AUTH_FILE=/skopeo.auth quay.io/skopeo/stable:v1.12.0 "\$@"
EOF

sudo chmod +x /usr/local/bin/skopeo

echo "{}" > $SKOPEO_AUTH_FILE

skopeo login -u oauth2accesstoken --password=foo europe-docker.pkg.dev

Should yield:

time="2023-07-12T18:38:13Z" level=fatal msg="logging into \"europe-docker.pkg.dev\": invalid username/password"

@kylos101 kylos101 requested a review from a team July 12, 2023 18:41
@gitpod-io
Copy link

gitpod-io bot commented Jul 12, 2023

@kylos101 kylos101 had a problem deploying to production-restricted July 12, 2023 18:41 — with GitHub Actions Failure
@kylos101 kylos101 merged commit f99ba64 into main Jul 12, 2023
1 of 3 checks passed
@kylos101
Copy link
Collaborator Author

kylos101 commented Jul 12, 2023

Nope

edit: I think it is due to this, which writes to the REGISTRY_AUTH_FILE, after successfully logging in

@kylos101 kylos101 changed the title [.github] add hints to test locally and prevent parising failures for the first run [.github] add hints to test locally and prevent parsing failures for the first run Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant