Skip to content

Commit

Permalink
chore: build and push debian and alpine images
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 19, 2024
1 parent fd734ef commit ce9901d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce9901d

Please sign in to comment.