Skip to content

Commit

Permalink
dadas
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Nov 23, 2023
1 parent 29e07a6 commit db0a8a2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,30 @@ jobs:
mkdir output-base
tar -C output-base -xf output-base.tar
- name: Build and push services-base
run: |
echo "CHRIS digets ${{steps.build_base.outputs.digest}}"
echo "CHRIS image_id ${{steps.build_base.outputs.imageid}}"
- name: Build and push services-base
- name: Build services-base
uses: docker/build-push-action@v5
with:
context: services-base
build-contexts: |
foo=oci-layout://output-base@${{steps.build_base.outputs.digest}}
diracx/base=oci-layout://output-base@${{steps.build_base.outputs.digest}}
outputs: type=oci,dest=output-services-base.tar
tags: ghcr.io/diracgrid/diracx/services-base:latest
platforms: linux/amd64,linux/arm64
- name: Extract base
- name: Extract services-base
run: |
mkdir output-services-base
tar -C output-services-base -xf output-services-base.tar
# - name: Build and push client-base
# uses: docker/build-push-action@v5
# with:
# context: client-base
# push: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/container-images' && github.ref_name == 'main' }}
# tags: ghcr.io/diracgrid/diracx/client-base:latest
# platforms: linux/amd64,linux/arm64
# build-args: BASE_IMAGE_DIGEST=${{steps.build_base.outputs.digest}}
- name: Build client-base
uses: docker/build-push-action@v5
with:
context: client-base
build-contexts: |
diracx/base=oci-layout://output-base@${{steps.build_base.outputs.digest}}
outputs: type=oci,dest=output-client-base.tar
tags: ghcr.io/diracgrid/diracx/client-base:latest
platforms: linux/amd64,linux/arm64
- name: Extract client-base
run: |
mkdir output-client-base
tar -C output-client-base -xf output-client-base.tar
3 changes: 1 addition & 2 deletions client-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG BASE_IMAGE_DIGEST=blabla
FROM ghcr.io/diracgrid/diracx/base@${BASE_IMAGE_DIGEST}
FROM ghcr.io/diracgrid/diracx/base


# Copying in ENTRYPOINT script and environment specification
Expand Down
2 changes: 1 addition & 1 deletion services-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM foo
FROM ghcr.io/diracgrid/diracx/base


# Copying in ENTRYPOINT script and environment specification
Expand Down

0 comments on commit db0a8a2

Please sign in to comment.