build with buildx
All checks were successful
/ release (push) Successful in 1m37s

This commit is contained in:
Luke Tainton 2025-01-02 16:26:38 +00:00
parent 53eaecff38
commit e9d12c681d
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -25,25 +25,19 @@ jobs:
- name: Set up Docker Buildx
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
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:
registry: ${{ vars.PACKAGES_REGISTRY_URL }}
username: ${{ vars.PACKAGES_REGISTRY_USERNAME }}
password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v6
# with:
# context: .
# push: true
# tags: ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
- name: Build image
run: docker build -t ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest .
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
- name: Push image
run: docker push ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest