From ba37bde6538cc3f977feb246fe92316c5c10cb42 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Tue, 30 Jul 2024 00:18:03 +0000 Subject: [PATCH] Add ipfs variable --- .github/workflows/reusable-builder-aur.yml | 6 ++++++ .github/workflows/reusable-builder-deb.yml | 6 ++++++ .github/workflows/reusable-builder-flatpak.yml | 6 ++++++ .github/workflows/reusable-builder-go.yml | 6 ++++++ .github/workflows/reusable-builder-rpm.yml | 6 ++++++ .github/workflows/reusable-builder-snap.yml | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/.github/workflows/reusable-builder-aur.yml b/.github/workflows/reusable-builder-aur.yml index 710f48a..a169400 100644 --- a/.github/workflows/reusable-builder-aur.yml +++ b/.github/workflows/reusable-builder-aur.yml @@ -24,8 +24,12 @@ on: default: 'block' description: 'Harden-Runner egress traffic policy' secrets: + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' permissions: contents: read @@ -72,7 +76,9 @@ jobs: - name: Build AUR package env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} run: bash -c '${{ inputs.params }}' - name: Upload artifacts diff --git a/.github/workflows/reusable-builder-deb.yml b/.github/workflows/reusable-builder-deb.yml index 0c9ca66..cb02b5f 100644 --- a/.github/workflows/reusable-builder-deb.yml +++ b/.github/workflows/reusable-builder-deb.yml @@ -27,8 +27,12 @@ on: default: 'block' description: 'Harden-Runner egress traffic policy' secrets: + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' permissions: contents: read @@ -87,7 +91,9 @@ jobs: - name: Build Debian package id: builder env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} GOARCH: ${{ inputs.go-arch }} GOARM: ${{ inputs.go-arm }} run: | diff --git a/.github/workflows/reusable-builder-flatpak.yml b/.github/workflows/reusable-builder-flatpak.yml index 12cf411..29fbe07 100644 --- a/.github/workflows/reusable-builder-flatpak.yml +++ b/.github/workflows/reusable-builder-flatpak.yml @@ -31,8 +31,12 @@ on: default: 'block' description: 'Harden-Runner egress traffic policy' secrets: + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' permissions: contents: read @@ -75,7 +79,9 @@ jobs: - name: Packaging flatpak env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} VERSION: ${{ inputs.version }} PRODUCT: ${{ inputs.product }} OWNER: ${{ inputs.owner }} diff --git a/.github/workflows/reusable-builder-go.yml b/.github/workflows/reusable-builder-go.yml index 4c20299..7ab6d9f 100644 --- a/.github/workflows/reusable-builder-go.yml +++ b/.github/workflows/reusable-builder-go.yml @@ -63,8 +63,12 @@ on: default: 'block' description: 'Harden-Runner egress traffic policy' secrets: + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' permissions: contents: read @@ -129,7 +133,9 @@ jobs: - name: Build binary id: builder env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} GOOS: ${{ inputs.go-os }} GOARCH: ${{ inputs.go-arch }} GOARM: ${{ inputs.go-arm }} diff --git a/.github/workflows/reusable-builder-rpm.yml b/.github/workflows/reusable-builder-rpm.yml index 11e54f9..719c2f9 100644 --- a/.github/workflows/reusable-builder-rpm.yml +++ b/.github/workflows/reusable-builder-rpm.yml @@ -24,8 +24,12 @@ on: default: 'block' description: 'Harden-Runner egress traffic policy' secrets: + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' wayback-signing-key: description: 'RPM signing private key.' wayback-signing-passpharse: @@ -63,7 +67,9 @@ jobs: - name: Build RPM package env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} WAYBACK_SIGNING_KEY: ${{ secrets.wayback-signing-key }} WAYBACK_SIGNING_PASSPHARSE: ${{ secrets.wayback-signing-passpharse }} run: bash -c '${{ inputs.params }}' diff --git a/.github/workflows/reusable-builder-snap.yml b/.github/workflows/reusable-builder-snap.yml index ac846b6..51015bc 100644 --- a/.github/workflows/reusable-builder-snap.yml +++ b/.github/workflows/reusable-builder-snap.yml @@ -30,8 +30,12 @@ on: secrets: snapcraft-token: description: 'The login data for the Snap Store produced with "snapcraft export-login", see: https://gist.github.com/waybackarchiver/076163653504f5fcef9bc4cc55422f5e' + wayback-ipfs-target: + description: 'Managed IPFS target for distribution binaries.' wayback-ipfs-apikey: description: 'Managed IPFS credential for distribution binaries.' + wayback-ipfs-secret: + description: 'Managed IPFS secret for distribution binaries.' permissions: contents: read @@ -103,7 +107,9 @@ jobs: with: snapcraft-channel: ${{ inputs.channel }} env: + WAYBACK_IPFS_TARGET: ${{ secrets.wayback-ipfs-target }} WAYBACK_IPFS_APIKEY: ${{ secrets.wayback-ipfs-apikey }} + WAYBACK_IPFS_SECRET: ${{ secrets.wayback-ipfs-secret }} - name: Publish Snap uses: snapcore/action-publish@0a8d537ae06f4a292e8b4ef1084cd5631b3c6871 # v1.1.1