Skip to content

Deploy to GHCR (Dev) #3

Deploy to GHCR (Dev)

Deploy to GHCR (Dev) #3

Workflow file for this run

name: Deploy to GHCR
on:
push:
branches:
- dev
# tags: ['v*']
workflow_dispatch:
jobs:
deploy:
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '20' }
- run: npm ci
- name: Publish to GH Packages (Docker)
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DEMO_GITHUB_TOKEN }}
- run: |
docker build -t ghcr.io/${{ github.repository }}:rc .
docker push ghcr.io/${{ github.repository }}:rc