Skip to content

fix: gcr workflow is updated. #9

fix: gcr workflow is updated.

fix: gcr workflow is updated. #9

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 }}

Check failure on line 20 in .github/workflows/publish-ghcr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-ghcr.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build . -t ghcr.io/${{ github.repository }}/portfolio:latest
- name: Push the Docker image
run: |
docker push ghcr.io/${{ github.repository }}/portfolio:latest