Skip to content

Update docker-image.yml #12

Update docker-image.yml

Update docker-image.yml #12

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag kirandevtn/wavy:latest
- name: Log in to Docker Hub with Access Token
run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login --username "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
- name: Push the Docker image to Docker Hub
run: docker push kirandevtn/wavy:latest