Skip to content

Update main.yml

Update main.yml #6

Workflow file for this run

name: Publish Docker image
on:
push:
branches: ['main']
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: macos-14-xlarge
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: sewalal/nodeapp:0.1.1