feat: add polybox and switchDrive storage (#527) #32
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: Create cache from commits on main | |
on: | |
push: | |
branches: | |
- main | |
- chore-add-kind | |
workflow_dispatch: | |
jobs: | |
save-poetry-cache: | |
runs-on: ubuntu-latest | |
env: | |
CACHE_KEY: main-branch-poetry-cache-ubuntu | |
CACHE_PATH: .devcontainer/.poetry_cache | |
DEVCONTAINER_IMAGE_CACHE: ghcr.io/swissdatasciencecenter/renku-data-services/devcontainer | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install python deps | |
uses: devcontainers/[email protected] | |
with: | |
runCmd: poetry install --with dev | |
push: always | |
skipContainerUserIdUpdate: false | |
imageName: ${{ env.DEVCONTAINER_IMAGE_CACHE }} | |
cacheFrom: ${{ env.DEVCONTAINER_IMAGE_CACHE }} | |
- uses: actions/cache/save@v4 | |
name: Create cache | |
with: | |
path: ${{ env.CACHE_PATH }} | |
key: ${{ env.CACHE_KEY }} |