52 lines (44 loc) · 2.25 KB
/
php2560-fall-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: tag-image-php2560
on: [workflow_dispatch]
env:
CLASS: php2560
TARGET: r_julia
SQLITE: false
PYTHON_VERSION: "3.9.17"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- name: Set Up GCloud
uses: google-github-actions/setup-gcloud@v0.6.2
with:
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }}
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }}
export_default_credentials: true
- name: Create Julia Environment Files
if: env.TARGET == 'r_julia'
run: |
sudo --preserve-env=CLASS docker-compose up julia_build
- name: Upload Julia Env Files to Google Storage Bucket
if: env.TARGET == 'r_julia'
run: |
gsutil cp -r requirements/classes/php2560/julia_env gs://jupyterhub-environment-files/fall-2023/php2560/past/${GITHUB_SHA}/julia
gsutil cp -r requirements/classes/php2560/julia_env gs://jupyterhub-environment-files/fall-2023/php2560/latest/julia
- name: Configure Docker
run: gcloud auth configure-docker
- name: Build and Push JH Image
run: |
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/php2560:${GITHUB_REF##*/}
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/php2560:${GITHUB_SHA}
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/php2560:latest
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/php2560:fall-2023
docker push gcr.io/jupyterhub-docker-images/php2560:latest
docker push gcr.io/jupyterhub-docker-images/php2560:fall-2023
docker push gcr.io/jupyterhub-docker-images/php2560:${GITHUB_REF##*/}
docker push gcr.io/jupyterhub-docker-images/php2560:${GITHUB_SHA}
- name: Upload Conda Env Files to Google Storage Bucket
run: |
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2023/php2560/past/${GITHUB_SHA}/conda
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2023/php2560/latest/conda