Skip to content

fix: gcr workflow is updated. #11

fix: gcr workflow is updated.

fix: gcr workflow is updated. #11

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- '**' # This triggers on every push to any branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build . -t ghcr.io/suraj-kumar00/portfolio:latest
- name: Push the Docker image
run: |
docker push ghcr.io/suraj-kumar00/portfolio:latest