From 34dcf82624097f737f500cac499d85391a317dcd Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 5 May 2025 09:22:12 +0200 Subject: [PATCH] Update GitHub Actions workflow to enhance Docker image build and push process --- .forgejo/workflows/push.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index 5a17d3d..8a5587e 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -3,15 +3,19 @@ jobs: build: runs-on: docker steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Build and push Docker image - uses: docker/build-push-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: code.edgarpierre.fr + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 with: - context: . push: true - tags: code.edgarpierre.fr/edpibu/botbotbot:${{ github.ref_name}} - secrets: | - DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }} + tags: edpibu/botbotbot:${{ github.ref_name }}