Skip to content

new workflow for creating docker image #1

new workflow for creating docker image

new workflow for creating docker image #1

Workflow file for this run

name: Docker Image CI for GHCR
on:
push:
paths:
- docker/**
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push the image
run: |

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

View workflow run for this annotation

GitHub Actions / Docker Image CI for GHCR

Invalid workflow file

The workflow is not valid. .github/workflows/publish-ghcr.yaml (Line: 14, Col: 14): Unrecognized named-value: 'secres'. Located at position 1 within expression: secres.GH_PAT
docker login --username filippobrizzi --password ${{ secres.GH_PAT }} ghcr.io
cd ${{github.workspace}}/docker
./build.sh
source ./version.sh
docker image tag ${IMAGE}:latest ghcr.io/filippobrizzi/${IMAGE}:latest
docker push ghcr.io/filippobrizzi/${IMAGE}:latest