Skip to content

Bump golang.org/x/sys from 0.10.0 to 0.13.0 #193

Bump golang.org/x/sys from 0.10.0 to 0.13.0

Bump golang.org/x/sys from 0.10.0 to 0.13.0 #193

Workflow file for this run

name: delete-pr-images
on:
pull_request:
types: [closed]
jobs:
delete_tags:
name: Delete PR images from Dockerhub
runs-on: ubuntu-latest
steps:
- name: dockerhub task
env:
BRANCH: ${{ github.head_ref }}
DOCKER_USER: ${{ secrets.DockerHubUser }}
DOCKER_PASS: ${{ secrets.DockerHubToken }}
run: |
BRANCH=$(echo -n ${BRANCH} | tr -c '[:alnum:]._-' '-')
TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${DOCKER_USER}'", "password": "'${DOCKER_PASS}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)
images=("${BRANCH}-latest" "${BRANCH}-runtime" "${BRANCH}-tools" "${BRANCH}-tests-1.28" "${BRANCH}-tests-1.27" "${BRANCH}-tests-1.26" "${BRANCH}-tests-1.25" "${BRANCH}-builder")
for i in ${images[*]}; do curl --fail -sS -X DELETE -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/digitalocean/k8s-e2e-test-runner/tags/$i/; done
curl --fail -sS -X DELETE -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/digitalocean/do-csi-plugin-dev/tags/${BRANCH}/