Skip to content

Manual Docker Min Unprivileged Build #1

Manual Docker Min Unprivileged Build

Manual Docker Min Unprivileged Build #1

# This workflow builds and uploads a the minimal docker image
# 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
on:
workflow_dispatch:
inputs:
tag:
description: "docker image tag"
required: true
type: string
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Build and push the Docker image
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERIMAGE_TAG: ${{ inputs.tag }}
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
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