diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index 1e681e6..b9e7f16 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -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 @@ -104,5 +113,6 @@ jobs: with: context: "{{defaultContext}}:${{ matrix.image }}" tags: hub.opensciencegrid.org/${{ matrix.image }} + platforms: ${{ env.PLATFORMS }} push: true diff --git a/htc/minimal:0/Dockerfile b/htc/minimal:0/Dockerfile new file mode 100644 index 0000000..028fbfd --- /dev/null +++ b/htc/minimal:0/Dockerfile @@ -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" +