Skip to content

Commit

Permalink
adding unprivileged docker build command to automated workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haigh <mhaigh@netapp.com>
  • Loading branch information
MichaelHaigh committed May 14, 2024
1 parent 585f7fe commit 2ce36bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual-docker-min-unprv-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# It's only meant to be manually invoked when the automated python-docker-publish.yml
# file errors out and the image needs to be rebuilt.

name: Manual Docker Min Build
name: Manual Docker Min Unprivileged Build

on:
workflow_dispatch:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/python-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ jobs:
DOCKERIMAGE_TAG: ${{ steps.vars.outputs.tag }}
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
docker buildx build . --push --file Dockerfile \
--tag netapp/astra-toolkits:latest --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG \
--platform linux/amd64,linux/arm64
docker buildx build . --push --file Dockerfile.minimal \
--tag netapp/astra-toolkits:latest-minimal --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG-minimal \
--platform linux/amd64,linux/arm64
docker buildx build . --push --file Dockerfile.minimal-unprivileged \
--tag netapp/astra-toolkits:latest-minimal-unprivileged --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG-minimal-unprivileged \
--platform linux/amd64,linux/arm64
docker buildx build . --push --file Dockerfile \
--tag netapp/astra-toolkits:latest --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG \
--platform linux/amd64,linux/arm64

0 comments on commit 2ce36bd

Please sign in to comment.