Skip to content

Commit 76e6624

Browse files
committed
👷 Docker / Github cache fix experiment
1 parent bebe9c4 commit 76e6624

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/dev.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,26 @@ jobs:
7373
username: ${{ secrets.DOCKERHUB_USERNAME }}
7474
password: ${{ secrets.DOCKERHUB_TOKEN }}
7575

76+
- name: 'Extract metadata for Docker Hub'
77+
id: meta
78+
uses: docker/metadata-action@v5
79+
with:
80+
images: ${{ env.IMAGE_URL }}
81+
7682
# Docker image: madsciencelab
7783
# Note: standard/ directory maps to madsciencelab image (no variants)
7884
- name: 'Build Docker image ${{ env.IMAGE_NAME }}'
7985
uses: docker/build-push-action@v6
8086
with:
8187
platforms: linux/amd64,linux/arm64
8288
context: ${{ steps.file-gen.outputs.PATH }}
83-
file: ${{ steps.file-gen.outputs.PATH }}/docker/Dockerfile
89+
file: docker/Dockerfile
8490
build-args: |
8591
CONTAINER_VERSION=${{ github.ref_name }}
8692
IMAGE_NAME=${{ env.IMAGE_NAME }}
8793
tags: ${{ env.IMAGE_URL }}:latest
94+
labels: ${{ steps.meta.outputs.labels }}
95+
cache-from: type=gha
8896

8997
madsciencelab-plugins:
9098
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)