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