Skip to content

Commit 5d9dc30

Browse files
committed
Add context to github actions
Signed-off-by: Martin Necas <[email protected]>
1 parent 6fcada6 commit 5d9dc30

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build-push-images.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,51 @@ jobs:
2323
- name: forklift-api
2424
file: build/forklift-api/Containerfile
2525
repo: forklift-api
26+
context: .
2627
- name: forklift-controller
2728
file: build/forklift-controller/Containerfile
2829
repo: forklift-controller
30+
context: .
2931
- name: forklift-operator
3032
file: build/forklift-operator/Containerfile
3133
repo: forklift-operator
34+
context: .
3235
- name: openstack-populator
3336
file: build/openstack-populator/Containerfile
3437
repo: openstack-populator
38+
context: .
3539
- name: openstack-populator
3640
file: build/openstack-populator/Containerfile
3741
repo: openstack-populator
42+
context: .
3843
- name: forklift-ova-provider-server
3944
file: build/ova-provider-server/Containerfile
4045
repo: forklift-ova-provider-server
46+
context: .
4147
- name: ovirt-populator
4248
file: build/ovirt-populator/Containerfile-upstream
4349
repo: ovirt-populator
50+
context: .
4451
- name: populator-controller
4552
file: build/populator-controller/Containerfile
4653
repo: populator-controller
54+
context: .
4755
- name: forklift-validation
4856
file: build/validation/Containerfile
4957
repo: forklift-validation
58+
context: .
5059
- name: virt-v2v
5160
file: build/virt-v2v/Containerfile-upstream
5261
repo: forklift-virt-v2v
62+
context: .
5363
- name: virt-v2v
5464
file: build/virt-v2v/Containerfile-upstream-fedora
5565
repo: forklift-virt-v2v-fedora
66+
context: .
5667
- name: vsphere-xcopy-volume-populator
5768
file: build/vsphere-xcopy-volume-populator/Containerfile
5869
repo: vsphere-xcopy-volume-populator
70+
context: "{{defaultContext}}:cmd/vsphere-xcopy-volume-populator"
5971
runs-on: ubuntu-latest
6072
steps:
6173
- name: Checkout forklift
@@ -72,6 +84,7 @@ jobs:
7284
uses: docker/build-push-action@v6
7385
with:
7486
push: true
87+
context: "${{ matrix.context }}"
7588
file: "${{ matrix.file }}"
7689
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_ORG }}/${{ matrix.repo }}:${{ env.REGISTRY_TAG }}
7790

0 commit comments

Comments
 (0)