cboettig commited on
Commit
518e8e8
·
1 Parent(s): 8d63d91

who invented yaml :skull_and_crossbones:

Browse files
Files changed (1) hide show
  1. .github/workflows/docker.yml +5 -8
.github/workflows/docker.yml CHANGED
@@ -5,25 +5,22 @@ on:
5
  paths: ['Dockerfile', 'requirements.txt', '.github/workflows/docker.yml']
6
  jobs:
7
  build:
8
- env:
9
- REPO: "boettiger-lab/solara-test"
10
- CONTAINER: "ghcr.io/boettiger-lab/solara-geospatial:latest"
11
  runs-on: ubuntu-latest
12
  permissions: write-all
13
  steps:
14
  - uses: actions/checkout@v3
15
  - name: Login to GitHub Container Registry
16
- if: github.repository == "boettiger-lab/solara-test"
17
  uses: docker/login-action@v1
18
  with:
19
  registry: ghcr.io
20
  username: ${{github.actor}}
21
  password: ${{secrets.GITHUB_TOKEN}}
22
  - name: Build the Docker image
23
- if: github.repository == "boettiger-lab/solara-test"
24
- run: docker build . --tag "ghcr.io/boettiger-lab/solara-geospatial:latest"
25
  - name: Publish
26
- if: github.repository == "boettiger-lab/solara-test"
27
- run: docker push "ghcr.io/boettiger-lab/solara-geospatial:latest"
28
  - name: test vars
29
  run: echo "repo is $REPO, container is $CONTAINER"
 
5
  paths: ['Dockerfile', 'requirements.txt', '.github/workflows/docker.yml']
6
  jobs:
7
  build:
 
 
 
8
  runs-on: ubuntu-latest
9
  permissions: write-all
10
  steps:
11
  - uses: actions/checkout@v3
12
  - name: Login to GitHub Container Registry
13
+ if: github.repository == 'boettiger-lab/solara-test'
14
  uses: docker/login-action@v1
15
  with:
16
  registry: ghcr.io
17
  username: ${{github.actor}}
18
  password: ${{secrets.GITHUB_TOKEN}}
19
  - name: Build the Docker image
20
+ if: github.repository == 'boettiger-lab/solara-test'
21
+ run: docker build . --tag ghcr.io/boettiger-lab/solara-geospatial:latest
22
  - name: Publish
23
+ if: github.repository == 'boettiger-lab/solara-test'
24
+ run: docker push ghcr.io/boettiger-lab/solara-geospatial:latest
25
  - name: test vars
26
  run: echo "repo is $REPO, container is $CONTAINER"