test2
Some checks failed
Publish Docker Image / publish (push) Failing after 1m49s

This commit is contained in:
Luke Tainton 2025-01-02 16:09:00 +00:00
parent 79c3cc5b54
commit a03da50e49
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -22,7 +22,6 @@ jobs:
run: | run: |
echo "DOCKER_OPTS=\"--insecure-registry ${{ vars.PACKAGES_REGISTRY_URL }}\"" >> /etc/default/docker echo "DOCKER_OPTS=\"--insecure-registry ${{ vars.PACKAGES_REGISTRY_URL }}\"" >> /etc/default/docker
echo "{\"insecure-registries\": [\"${{ vars.PACKAGES_REGISTRY_URL }}\"]}" > /etc/docker/daemon.json echo "{\"insecure-registries\": [\"${{ vars.PACKAGES_REGISTRY_URL }}\"]}" > /etc/docker/daemon.json
systemctl restart docker
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4.2.2 uses: actions/checkout@v4.2.2
@ -30,24 +29,20 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
# - name: Log in to Gitea Package Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ vars.PACKAGES_REGISTRY_URL }}
# username: ${{ vars.PACKAGES_REGISTRY_USERNAME }}
# password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }}
- name: Log in to Gitea Package Registry - name: Log in to Gitea Package Registry
run: echo ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} | docker login ${{ vars.PACKAGES_REGISTRY_URL }} -u ${{ vars.PACKAGES_REGISTRY_USERNAME }} --password-stdin uses: docker/login-action@v3
with: with:
registry: ${{ vars.PACKAGES_REGISTRY_URL }} registry: ${{ vars.PACKAGES_REGISTRY_URL }}
username: ${{ vars.PACKAGES_REGISTRY_USERNAME }} username: ${{ vars.PACKAGES_REGISTRY_USERNAME }}
password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }}
# - name: Log in to Gitea Package Registry
# run: echo ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} | docker login ${{ vars.PACKAGES_REGISTRY_URL }} -u ${{ vars.PACKAGES_REGISTRY_USERNAME }} --password-stdin
- name: Build and push Docker image - name: Build and push Docker image
id: push id: push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
tags: ${{ env.REGISTRY_URL }}/${{ gitea.repository }}:latest tags: ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest