Merge pull request #1 from AnshRoshan/dependabot/npm_and_yarn/npm_and… #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |