Skip to content

build and publish image to docker #2

build and publish image to docker

build and publish image to docker #2

Workflow file for this run

name: build and publish image to docker
on:
workflow_dispatch
jobs:
publish_images:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build image
run: docker build ./api/ -t nabeelmohamed/devops-qr-code-api:latest
- name: Publish image to Docker Hub
run: |
docker login -u nabeelmohamed -p ${{secrets.SECRET_GITHUB_TOKEN}}
docker push nabeelmohamed/devops-qr-code-api:latest