Skip to content

Workflow file for this run

name: Build & Push Docker image for project
on:
push:
types: [labeled]
pull_request:
types: [labeled]
jobs:
build-and-push:
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'pull_request' && github.event.label.name == 'CI:Build') }}
steps:
- uses: actions/checkout@v4
- name: Login to Github Container repository
- uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}

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

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag go-etherium-devops:$(date +%s)
- name: Push Docker image to Github container repository
run: docker push ghcr.io/go-etherium-devops:$(date +%s)