Skip to content

Publish container to GHCR #3

Publish container to GHCR

Publish container to GHCR #3

Workflow file for this run

name: Publish to GHCR
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
- name: Install pnpm
run: npm install -g pnpm
with:

Check failure on line 23 in .github/workflows/publish-ghcr.yaml

View workflow run for this annotation

GitHub Actions / Publish to GHCR

Invalid workflow file

The workflow is not valid. .github/workflows/publish-ghcr.yaml (Line: 23, Col: 9): Unexpected value 'with'

Check failure on line 23 in .github/workflows/publish-ghcr.yaml

View workflow run for this annotation

GitHub Actions / Publish to GHCR

Invalid workflow file

The workflow is not valid. .github/workflows/publish-ghcr.yaml (Line: 23, Col: 9): Unexpected value 'with'
version: 9
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Publish to GHCR
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- run: docker build -t ghcr.io/${{ github.repository }}:latest .
- run: docker push ghcr.io/${{ github.repository }}:latest