From b37f312049124762f130b612c49b4ffe78362071 Mon Sep 17 00:00:00 2001 From: Mindfang Date: Mon, 22 Jan 2024 19:42:46 -0600 Subject: [PATCH] Testing more changes --- .gitea/workflows/commit.yaml | 53 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/commit.yaml b/.gitea/workflows/commit.yaml index ead8026..323006d 100644 --- a/.gitea/workflows/commit.yaml +++ b/.gitea/workflows/commit.yaml @@ -19,39 +19,40 @@ jobs: packages: write steps: - # - name: Prepare the container - # run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh + - name: Prepare the container + run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh - name: Checkout repository uses: actions/checkout@v4 - # - name: Set up QEMU - # uses: docker/setup-qemu-action@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build image - run: | - buildx build . - # - name: Log in to registry - # uses: docker/login-action@v3 - # with: - # registry: ${{ env.REGISTRY }} - # username: ${{ gitea.actor }} - # password: ${{ secrets.AUTH_TOKEN }} + # - name: Build image + # run: | + # buildx build . - # - name: Extract metadata for registry - # id: meta - # uses: docker/metadata-action@v5 - # with: - # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # tags: type=raw,value=latest,enable={{is_default_branch}} + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ gitea.actor }} + password: ${{ secrets.AUTH_TOKEN }} - # - name: Build and push Docker image - # uses: docker/build-push-action@v5 - # with: - # context: . - # push: true - # tags: ${{ steps.meta.outputs.tags }} - # labels: ${{ steps.meta.outputs.labels }} + - name: Extract metadata for registry + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: type=raw,value=latest,enable={{is_default_branch}} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}