Skip to content

Commit

Permalink
pin docker image (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq authored Oct 21, 2021
1 parent 59d4438 commit 0a8ad21
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: '0 0 * * 0'

env:
DOCKER_IMAGE: uwhackweek/snowex:latest
DOCKER_IMAGE: uwhackweek/snowex:2021.09.07

jobs:
build-and-test:
Expand All @@ -27,7 +27,7 @@ jobs:
run: |
docker pull $DOCKER_IMAGE
docker images
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -47,7 +47,7 @@ jobs:
-e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
-v ${{ github.workspace }}:/home/jovyan:rw \
$DOCKER_IMAGE .github/workflows/build.sh
- name: Save Build
if: ${{ always() }}
uses: actions/upload-artifact@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ on: workflow_dispatch
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#example-workflow-configuration

env:
DOCKER_IMAGE: uwhackweek/snowex:latest
DOCKER_IMAGE: uwhackweek/snowex:2021.09.07

jobs:
build-and-test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Pull Docker Image
run: |
docker pull $DOCKER_IMAGE
docker images
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -38,7 +38,7 @@ jobs:
-e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
-v ${{ github.workspace }}:/home/jovyan:rw \
$DOCKER_IMAGE .github/workflows/build.sh
- name: Save Build
if: ${{ always() }}
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/netlifypreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [labeled, synchronize]

env:
DOCKER_IMAGE: uwhackweek/snowex:latest
DOCKER_IMAGE: uwhackweek/snowex:2021.09.07

jobs:
add-preview:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qaqc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
DOCKER_IMAGE: uwhackweek/snowex:latest
DOCKER_IMAGE: uwhackweek/snowex:2021.09.07

jobs:
quality-control:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- main

env:
DOCKER_IMAGE: uwhackweek/snowex:latest
DOCKER_IMAGE: uwhackweek/snowex:2021.09.07

jobs:
build-and-test:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To add a tutorial as a jupyter notebook under [./book/tutorials](./book/tutorial
```
git clone https://github.com/snowex-hackweek/website
cd website
docker run uwhackweek/snowex:latest -v $PWD:/home/jovyan jb build book
docker run uwhackweek/snowex:2021.09.07 -v $PWD:/home/jovyan jb build book
```

## About JupyterBook
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
jupyterlab:
image: "uwhackweek/snowex:latest"
image: "uwhackweek/snowex:2021.09.07"
ports:
- "8888:8888"
command: "jupyter lab --ip 0.0.0.0 --no-browser"
Expand Down

0 comments on commit 0a8ad21

Please sign in to comment.