Compare commits
No commits in common. "2987c48db8dac4e278f71834afad23700dd573cc" and "aab5830cf09130625e01047539e4ede92676b6e0" have entirely different histories.
2987c48db8
...
aab5830cf0
1 changed files with 8 additions and 12 deletions
|
|
@ -24,14 +24,11 @@ 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: |
|
||||||
mkdir -p ~/.config/containers
|
|
||||||
# configure container policy to accept insecure registry
|
# configure container policy to accept insecure registry
|
||||||
echo "Creating config file..."
|
mkdir -p ~/.config/containers
|
||||||
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": {
|
||||||
|
|
@ -41,10 +38,12 @@ jobs:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
echo "Created auth file"
|
|
||||||
|
|
||||||
- name: Checkout repo
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
# - name: Log into registry
|
||||||
|
# run: |
|
||||||
|
# echo "${{ secrets.PACKAGE_TOKEN }}" | podman login --username "${{ forge.actor }}" --password-stdin ${{ env.registry }}
|
||||||
|
|
||||||
- name: Create image
|
- name: Create image
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -52,8 +51,5 @@ jobs:
|
||||||
podman load < result
|
podman load < result
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: >-
|
run: |
|
||||||
podman push
|
podman push --authfile=~/.config/containers/auth.json localhost/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}
|
||||||
--authfile=/root/.config/containers/auth.json
|
|
||||||
localhost/${{ env.image }}:${{ env.tag }}
|
|
||||||
${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue