Skip to content

Commit

Permalink
Trying multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
rynge committed Oct 9, 2024
1 parent 5f273ee commit ae4801a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ jobs:
image: ${{ fromJson(needs.build-image-list.outputs.images) }}
steps:

- name: Set environment variables
id: set-env-vars
run: |
if [ "${{ matrix.image }}" == "htc/minimal:0" ]; then
echo "PLATFORMS=linux/amd64,linux/arm64" >> $GITHUB_ENV
else
echo "PLATFORMS=linux/amd64" >> $GITHUB_ENV
fi
- name: Set up Docker Buildx
if: success()
uses: docker/setup-buildx-action@v3
Expand All @@ -104,5 +113,6 @@ jobs:
with:
context: "{{defaultContext}}:${{ matrix.image }}"
tags: hub.opensciencegrid.org/${{ matrix.image }}
platforms: ${{ env.PLATFORMS }}
push: true

8 changes: 8 additions & 0 deletions htc/minimal:0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM alpine:latest

LABEL opensciencegrid.name="Minimal"
LABEL opensciencegrid.description="Minimal image - used for testing"
LABEL opensciencegrid.url="https://osg-htc.org/"
LABEL opensciencegrid.category="Tools"
LABEL opensciencegrid.definition_url="https://github.com/osg-htc/htc-images"

0 comments on commit ae4801a

Please sign in to comment.