Skip to content

Docker Image CI

Docker Image CI #1

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch: null
push:
paths: ['Dockerfile', 'requirements.txt']
jobs:
build:
env:
REPO: "boettiger-lab/solara-test"
CONTAINER: "ghcr.io/boettiger-lab/solara-geospatial:latest"
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
if: github.repository == ${{repo}}

Check failure on line 16 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 16, Col: 13): Unrecognized named-value: 'repo'. Located at position 1 within expression: repo .github/workflows/docker.yml (Line: 23, Col: 13): Unrecognized named-value: 'repo'. Located at position 1 within expression: repo
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
if: github.repository == ${{repo}}
run: docker build . --tag ${{CONTAINER}}
- name: Publish
if: github.repository == ${{repo}}
run: docker push ${{CONTAINER}}