Skip to content

Commit 3dd4dbe

Browse files
committed
fix: docker build context
1 parent 2d6edc6 commit 3dd4dbe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/pi_build.yml

+14
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
27+
with:
28+
repository: ${{ github.repository_owner }}/refinery-submodule-parent-images
29+
ref: ${{ github.event.pull_request.head.ref }}
2730

2831
- name: GitHub Configuration
2932
run: git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
@@ -65,6 +68,13 @@ jobs:
6568
with:
6669
repository: '${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
6770
submodules: 'true'
71+
72+
- name: Update submodules
73+
run: |
74+
ls -l
75+
cd ..
76+
ls -l
77+
6878
6979
- name: Set up Docker Buildx
7080
uses: docker/setup-buildx-action@v3
@@ -86,6 +96,7 @@ jobs:
8696
- name: Build & Push refinery-${{ matrix.parent_image_type }}-parent-image:dev
8797
uses: docker/build-push-action@v5
8898
with:
99+
context: .
89100
cache-from: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:dev-${{ matrix.parent_image_type }}-cache
90101
cache-to: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:dev-${{ matrix.parent_image_type }}-cache,mode=max,image-manifest=true
91102
platforms: linux/amd64
@@ -99,6 +110,7 @@ jobs:
99110
- name: Build & Push refinery-${{ matrix.parent_image_type }}-parent-image:dev-arm64
100111
uses: docker/build-push-action@v5
101112
with:
113+
context: .
102114
cache-from: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:dev-${{ matrix.parent_image_type }}-arm64-cache
103115
cache-to: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:dev-${{ matrix.parent_image_type }}-arm64-cache,mode=max,image-manifest=true
104116
platforms: linux/arm64
@@ -112,6 +124,7 @@ jobs:
112124
- name: Build & Push refinery-${{ matrix.parent_image_type }}-parent-image:sha
113125
uses: docker/build-push-action@v5
114126
with:
127+
context: .
115128
cache-from: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:${{ github.sha }}-${{ matrix.parent_image_type }}-cache
116129
cache-to: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:${{ github.sha }}-${{ matrix.parent_image_type }}-cache,mode=max,image-manifest=true
117130
platforms: linux/amd64
@@ -125,6 +138,7 @@ jobs:
125138
- name: Build & Push refinery-${{ matrix.parent_image_type }}-parent-image:sha-arm64
126139
uses: docker/build-push-action@v5
127140
with:
141+
context: .
128142
cache-from: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:${{ github.sha }}-${{ matrix.parent_image_type }}-arm64-cache
129143
cache-to: type=registry,ref=${{ env.DEV_CONTAINER_REGISTRY }}/refinery-parent-images:${{ github.sha }}-${{ matrix.parent_image_type }}-arm64-cache,mode=max,image-manifest=true
130144
platforms: linux/arm64

0 commit comments

Comments
 (0)