Merge pull request #169 from kristiankunc/dependabot/npm_and_yarn/sve… #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Build and Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and tag Docker image | |
run: | | |
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/vatnotif-web:latest | |
- name: Push Docker image | |
run: | | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/vatnotif-web:latest |