Skip to content

Commit

Permalink
May 2024 Dependabot version bumps
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haigh <[email protected]>
  • Loading branch information
MichaelHaigh committed May 13, 2024
1 parent 634504e commit 7bdc1b8
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 58 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/manual-docker-min-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'docker image 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/setup-buildx-action@v3.2.0
- name: Build and push the Docker image
env:
- uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3.3.0
- 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 \
--tag netapp/astra-toolkits:latest-minimal --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG-minimal \
--platform linux/amd64,linux/arm64
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
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
22 changes: 11 additions & 11 deletions .github/workflows/manual-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'docker image 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/setup-buildx-action@v3.2.0
- name: Build and push the Docker image
env:
- uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3.3.0
- 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 \
--tag netapp/astra-toolkits:latest --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG \
--platform linux/amd64,linux/arm64
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
65 changes: 32 additions & 33 deletions .github/workflows/python-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,50 @@ 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
- 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/setup-buildx-action@v3.2.0
- name: Build and push the Docker images
env:
- 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/setup-buildx-action@v3.3.0
- 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 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
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
2 changes: 1 addition & 1 deletion Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.2-alpine3.19
FROM python:3.12.3-alpine3.19
RUN apk add --no-cache jq
RUN pip install actoolkit
CMD ["/bin/sh"]
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Jinja2>=3.1.2
kubernetes>=24.2.0,<=27.2.0
kubernetes>=25.3.0,<=29.0.0
PyYAML>=6.0.0,<=6.0.1
requests==2.31.0
tabulate>=0.8.9,<=0.9.0
urllib3>=1.26.8,<=2.1.0
urllib3>=1.26.8,<=2.2.1

0 comments on commit 7bdc1b8

Please sign in to comment.