Skip to content

Commit

Permalink
who invented yaml ☠️
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 19, 2023
1 parent 8d63d91 commit 518e8e8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,22 @@ on:
paths: ['Dockerfile', 'requirements.txt', '.github/workflows/docker.yml']
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 == "boettiger-lab/solara-test"
if: github.repository == 'boettiger-lab/solara-test'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
if: github.repository == "boettiger-lab/solara-test"
run: docker build . --tag "ghcr.io/boettiger-lab/solara-geospatial:latest"
if: github.repository == 'boettiger-lab/solara-test'
run: docker build . --tag ghcr.io/boettiger-lab/solara-geospatial:latest
- name: Publish
if: github.repository == "boettiger-lab/solara-test"
run: docker push "ghcr.io/boettiger-lab/solara-geospatial:latest"
if: github.repository == 'boettiger-lab/solara-test'
run: docker push ghcr.io/boettiger-lab/solara-geospatial:latest
- name: test vars
run: echo "repo is $REPO, container is $CONTAINER"

0 comments on commit 518e8e8

Please sign in to comment.