From ce9901df1a48f0289e8bdcdb5a3121d8afa7fefe Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Tue, 19 Mar 2024 08:08:59 +0100 Subject: [PATCH] chore: build and push debian and alpine images --- .github/workflows/dockerhub.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 7c4301e4..31989ce4 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -26,17 +26,27 @@ jobs: id: sha run: echo "::set-output name=sha::$(git rev-parse --short HEAD)" - - name: Build and push Docker image + - name: Build and push Docker image bullseye uses: docker/build-push-action@v5 with: context: . - file: ./Dockerfile.alpine + file: ./Dockerfile push: true build-args: | COMMITHASH=${{ steps.sha.outputs.sha }} BUILDTIME=${{ steps.date.outputs.date }} + tags: docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:${{ steps.sha.outputs.sha }}-bullseye, docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:bullseye - tags: docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:latest, docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:${{ steps.sha.outputs.sha }} + - name: Build and push Docker image alpine + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.alpine + push: true + build-args: | + COMMITHASH=${{ steps.sha.outputs.sha }} + BUILDTIME=${{ steps.date.outputs.date }} + tags: docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:latest, docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:${{ steps.sha.outputs.sha }}-alpine deploy: runs-on: ubuntu-latest needs: build-and-push