Skip to content

Merge pull request #169 from kristiankunc/dependabot/npm_and_yarn/sve… #19

Merge pull request #169 from kristiankunc/dependabot/npm_and_yarn/sve…

Merge pull request #169 from kristiankunc/dependabot/npm_and_yarn/sve… #19

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