Skip to content

Add new action to create docker image #2

Add new action to create docker image

Add new action to create docker image #2

Workflow file for this run

name: Docker Image CI for GHCR
on:
push:
branches: [ "main" ]
paths:
- docker/**
pull_request:
branches: [ "main" ]
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 19 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: 19, 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