python=3.10 target=r_lang #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-image-php2650 | |
on: | |
push: | |
paths: | |
- 'requirements/classes/php2650/**' | |
- 'Dockerfile' | |
- 'docker-compose.yml' | |
- 'scripts/**' | |
- '.github/workflows/php2650.yml' | |
env: | |
CLASS: php2650 | |
TARGET: r_lang | |
SQLITE: false | |
PYTHON_VERSION: 3.10 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up GCloud | |
uses: google-github-actions/[email protected] | |
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: Configure Docker | |
run: gcloud auth configure-docker | |
# - uses: satackey/[email protected] | |
# Ignore the failure of a step and avoid terminating the job. | |
# continue-on-error: true | |
- 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/php2650:${GITHUB_REF##*/} | |
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/php2650:latest | |
docker push gcr.io/jupyterhub-docker-images/php2650:latest | |
docker push gcr.io/jupyterhub-docker-images/php2650:${GITHUB_REF##*/} |