Update Docker login steps to use GitHub actor and package token; remove Docker startup wait
Some checks failed
Build and Push Ansible Container / build-and-push (amd64) (push) Failing after 33s
Build and Push Ansible Container / build-and-push (arm64) (push) Failing after 35s
Build and Push Ansible Container / manifest (push) Has been skipped
Docker-in-Docker CI/CD Pipeline / Build and Push Docker-in-Docker Images (push) Failing after 1m30s
Docker-in-Docker CI/CD Pipeline / Create and Publish Multi-Arch Manifest (push) Has been skipped

This commit is contained in:
Xaver Russ 2025-07-21 00:53:04 +02:00
parent 50f353bfc6
commit 4bbc28cb6f
2 changed files with 9 additions and 19 deletions

View file

@ -24,14 +24,17 @@ jobs:
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Forgejo Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.FORGEJO_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_TOKEN }}
- name: Build and Push Image for ${{ matrix.arch }}
uses: docker/build-push-action@v6
with:
@ -61,12 +64,14 @@ jobs:
echo "Waiting for Docker to start..."
sleep 1
done
- name: Login to Forgejo Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_TOKEN }}
- name: Create and Push Multi-Arch Manifest
run: |
docker manifest create ${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}/dockerindocker:latest \