Skip to content

Merge pull request #14 from igancev/main #1

Merge pull request #14 from igancev/main

Merge pull request #14 from igancev/main #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/orrnobmahmud/moonbixauto:latest
docker push ghcr.io/orrnobmahmud/moonbixauto:latest