Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pangeo-notebook for R #73

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@ jobs:
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.5.1

- name: Cache Docker layers
uses: actions/cache@v2.1.6
with:
path: /tmp/.buildx-cache
key: ohw-docker-buildx-${{ inputs.image_name }}-${{ github.sha }}
restore-keys: |
ohw-docker-buildx-${{ inputs.image_name }}
uses: docker/setup-buildx-action@v2.9.1

- name: Set Job Environment Variables
id: env_var
Expand All @@ -92,18 +84,20 @@ jobs:
echo "::set-output name=image_ref::${DOCKER_TAG})"

- name: Build Docker Image
uses: docker/build-push-action@v2.6.1
uses: docker/build-push-action@v4.1.1
with:
tags: |
${{ env.IMAGE_NAME }}:${{ env.DOCKER_TAG }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
load: true
context: ${{ inputs.working_directory }}

- name: Docker image sizes
run: |
env
docker images
docker images | grep ${{ env.IMAGE_NAME }}

echo "### Image sizes" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -154,8 +148,3 @@ jobs:
}
]
}

- name: Move Docker Cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
Loading
Loading