Skip to content

Commit

Permalink
docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 19, 2023
1 parent 719ea5d commit 4be9524
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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}}
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}}

0 comments on commit 4be9524

Please sign in to comment.