From 33e8a80ded8bc61433c38ddad2973a2b57a471ee Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 23 Jun 2026 19:07:27 +0200 Subject: [PATCH] drop unused swagger upload workflow See the prior commit, we now build the swagger yaml as part of the official readthedocs process so we do not need to host it elsewhere. Signed-off-by: Paul Holzinger --- .github/workflows/swagger.yml | 75 ----------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/swagger.yml diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml deleted file mode 100644 index b614d94da9..0000000000 --- a/.github/workflows/swagger.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: Publish swagger - -# Build the libpod API spec (pkg/api/swagger.yaml) and publish it to the -# public GCS bucket consumed by the API reference docs -# (docs/source/_static/api.html -> https://storage.googleapis.com/libpod-master-releases/swagger-.yaml). -# Pushes to main publish "swagger-latest.yaml"; tags publish "swagger-.yaml". -on: - push: - branches: - - main - tags: - - "v*" - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - publish-swagger: - # TODO we need to setup the permissions and likely use our new oracle bucket instead - # For now lets just skip this part - if: false - name: Build and publish swagger.yaml - runs-on: cncf-ubuntu-8-32-x86 - steps: - - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - - - name: Install build dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - gawk \ - libassuan-dev \ - libbtrfs-dev \ - libgpgme-dev \ - libseccomp-dev \ - libsystemd-dev \ - libclone-perl \ - man-db \ - podman \ - python3-pip - - - name: Set up Go - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 - with: - go-version-file: go.mod - cache: false - - - name: Build swagger.yaml - run: make swagger - - - name: Publish swagger.yaml to GCS - env: - GCPJSON: ${{ secrets.GCPJSON }} - GCPNAME: ${{ secrets.GCPNAME }} - GCPPROJECT: libpod-218412 - # Pushes to main publish "latest"; tags publish under their tag name. - TO_GCSURI: gs://libpod-master-releases/swagger-${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}.yaml - FROM_FILEPATH: /src/pkg/api/swagger.yaml - # Uploader image tag, copied from .cirrus.yml IMAGE_SUFFIX. - GCSUPLD_FQIN: quay.io/libpod/gcsupld:c20260425t010036z-f43f42d14 - run: | - # Pass secrets through podman's environment (-e VAR) rather than an - # env-file so they are never written to disk. - podman run --rm --security-opt label=disable \ - -e GCPJSON -e GCPNAME -e GCPPROJECT -e FROM_FILEPATH -e TO_GCSURI \ - -v "$GITHUB_WORKSPACE:/src:ro" \ - --workdir /src \ - "$GCSUPLD_FQIN"