Skip to content

Merge pull request #1 from AnshRoshan/dependabot/npm_and_yarn/npm_and… #33

Merge pull request #1 from AnshRoshan/dependabot/npm_and_yarn/npm_and…

Merge pull request #1 from AnshRoshan/dependabot/npm_and_yarn/npm_and… #33

Workflow file for this run

name: Docker Image CI for GHCR
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Github Checkout
uses: actions/checkout@v3
- name: Build Image and Publish On GHCR
run: |
docker login --username anshroshan --password ${{secrets.PATOKEN}} ghcr.io
docker build -t ghcr.io/anshroshan/react-project-ghcr:latest .
docker push ghcr.io/anshroshan/react-project-ghcr:latest