Skip to content

add docker-image workflow #1

add docker-image workflow

add docker-image workflow #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }

Check failure on line 28 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 28, Col: 19): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ env.registry }}/${{ env.IMAGE_NAME }}:test
- name: Push the Docker image
run: docker push ${{ env.registry }}/${{ env.IMAGE_NAME }}:test