This commit is contained in:
parent
716342d556
commit
b158df262e
1 changed files with 14 additions and 2 deletions
|
@ -30,6 +30,18 @@ jobs:
|
||||||
mkdir -p ~/.config/containers
|
mkdir -p ~/.config/containers
|
||||||
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
||||||
|
|
||||||
|
# Create authentication file for podman
|
||||||
|
mkdir -p ~/.docker
|
||||||
|
cat > ~/.docker/config.json <<EOF
|
||||||
|
{
|
||||||
|
"auths": {
|
||||||
|
"${{ env.REGISTRY }}": {
|
||||||
|
"auth": "$(echo -n "${{ forge.actor }}:${{ forge.token }}" | base64 -w 0)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Log into registry
|
- name: Log into registry
|
||||||
run: |
|
run: |
|
||||||
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
|
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
|
||||||
|
@ -41,8 +53,8 @@ jobs:
|
||||||
|
|
||||||
- name: __DEBUG__
|
- name: __DEBUG__
|
||||||
run: |
|
run: |
|
||||||
cat ${XDG_RUNTIME_DIR}/containers/auth.json
|
[ -r ${XDG_RUNTIME_DIR}/containers/auth.json ] && cat ${XDG_RUNTIME_DIR}/containers/auth.json
|
||||||
cat ~/.docker/config.json
|
[ -r ~/.docker/config.json ] && cat ~/.docker/config.json
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: >-
|
run: >-
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue