-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
284 additions
and
740 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Build and push Docker image | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-push-docker: | ||
|
@@ -29,45 +29,28 @@ jobs: | |
run: | | ||
SHA7="${GITHUB_SHA::7}" | ||
DOCKER_TAG=$SHA7 | ||
echo $DOCKER_TAG > docker-tag.txt | ||
echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
echo "DOCKER_TAG=${DOCKER_TAG}" >> $GITHUB_ENV | ||
- name: Upload docker tag | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-tag | ||
path: docker-tag.txt | ||
- name: "Set up QEMU" | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: "Set up Docker Buildx" | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: "Build and Publish to DockerHub" | ||
uses: elgohr/[email protected] | ||
- name: "Login to Docker Hub" | ||
uses: docker/login-action@v2 | ||
with: | ||
name: openscapes/python | ||
username: openscapes | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
workdir: ci | ||
tags: "main, ${{env.DOCKER_TAG}}" | ||
|
||
- name: "Build and push" | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ci | ||
push: true | ||
tags: openscapes/python:latest, openscapes/python:${{ env.RELEASE_DATE }} | ||
|
||
- name: Export Full Conda Environment | ||
run: | | ||
docker run openscapes/python:main conda list --export | ||
update-hub-image: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
needs: build-and-push-docker | ||
steps: | ||
- name: get docker tag | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: docker-tag | ||
- shell: bash | ||
run: | | ||
DOCKER_TAG=`cat docker-tag.txt` | ||
echo "DOCKER_TAG=${DOCKER_TAG}" >> $GITHUB_ENV | ||
- name: Push new image to hub | ||
shell: bash | ||
env: | ||
JUPYTERHUB_TOKEN: ${{ secrets.HUB_TOKEN }} | ||
run: | | ||
echo $DOCKER_TAG | ||
curl -Lv "https://staging.openscapes.2i2c.cloud/services/configurator/config" -X POST -H "Content-Type: application/json" -H "Authorization: token ${{env.JUPYTERHUB_TOKEN}}" --data '{"Spawner.default_url":"/lab","KubeSpawner.image":"openscapes/python:${{env.DOCKER_TAG}}"}' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## corn v2023.08.01 | ||
|
||
* using earthaccess v0.5.3 | ||
* pinned netcdf to 1.6.4 but still getting libnetcdf 1.9.2 via conda | ||
* added quarto jupyterlab extension | ||
* jupyter-resource-uage got updated to 1.0 | ||
* removing pangeo-notebook and using the Jupyter packages directly | ||
* using official docker action to build and push image | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
harmony-py | ||
jupyterlab-quarto |
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