adding ASUP URL override option to --v3 manage cluster #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will first upload a Python Package using Twine | |
# It will then build and upload a Docker image | |
# These steps happen when a new tag is pushed | |
name: Python and Docker CI | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
jobs: | |
python-package: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Build package | |
run: python -m build --wheel | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | |
docker-image: | |
needs: python-package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set tag output | |
id: vars | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: wait for actoolkit | |
run: sleep 300 | |
- name: Docker Setup Buildx | |
uses: docker/[email protected] | |
- name: Build and push the Docker images | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKERIMAGE_TAG: ${{ steps.vars.outputs.tag }} | |
run: | | |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD | |
docker buildx build . --push --file dockerfiles/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 dockerfiles/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 dockerfiles/Dockerfile \ | |
--tag netapp/astra-toolkits:latest --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG \ | |
--platform linux/amd64,linux/arm64 |