From e9d12c681d23aa627c12126e0c7fd7ab7e10dd62 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 16:26:38 +0000 Subject: [PATCH] build with buildx --- .gitea/workflows/release.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 84a060f..aeb3621 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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