add some logging to the prepare step
This commit is contained in:
parent
0dc45b8b56
commit
6c12b22026
1 changed files with 5 additions and 1 deletions
|
|
@ -24,11 +24,14 @@ jobs:
|
||||||
# cheatsheet: https://nexveridian.com/blog/forgejo-pushing-container-images/
|
# cheatsheet: https://nexveridian.com/blog/forgejo-pushing-container-images/
|
||||||
- name: Prepare environment
|
- name: Prepare environment
|
||||||
run: |
|
run: |
|
||||||
# configure container policy to accept insecure registry
|
|
||||||
mkdir -p ~/.config/containers
|
mkdir -p ~/.config/containers
|
||||||
|
# configure container policy to accept insecure registry
|
||||||
|
echo "Creating config file..."
|
||||||
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
||||||
|
echo "Created config file"
|
||||||
|
|
||||||
# configure authentication
|
# configure authentication
|
||||||
|
echo "Creating auth file..."
|
||||||
cat > ~/.config/containers/auth.json <<EOF
|
cat > ~/.config/containers/auth.json <<EOF
|
||||||
{
|
{
|
||||||
"auths": {
|
"auths": {
|
||||||
|
|
@ -38,6 +41,7 @@ jobs:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
echo "Created auth file"
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue