snap pkging only

This commit is contained in:
Erica Portnoy
2026-06-10 16:50:37 -07:00
parent 0a5fe7c5ac
commit 72e34e4757
2 changed files with 85 additions and 85 deletions
+17 -17
View File
@@ -13,23 +13,23 @@ permissions:
jobs: jobs:
# These four jobs could be grouped in a separate workflow, but the github actions UI # These four jobs could be grouped in a separate workflow, but the github actions UI
# is much nicer if they are instead listed explicitly here. # is much nicer if they are instead listed explicitly here.
standard_tests_jobs: # standard_tests_jobs:
name: Standard tests # name: Standard tests
uses: "./.github/workflows/standard_tests_jobs.yml" # uses: "./.github/workflows/standard_tests_jobs.yml"
extended_tests_jobs: # extended_tests_jobs:
name: Extended tests # name: Extended tests
uses: "./.github/workflows/extended_tests_jobs.yml" # uses: "./.github/workflows/extended_tests_jobs.yml"
secrets: # secrets:
AWS_TEST_FARM_PEM: "${{ secrets.AWS_TEST_FARM_PEM }}" # AWS_TEST_FARM_PEM: "${{ secrets.AWS_TEST_FARM_PEM }}"
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" # AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" # AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
docker_packaging_jobs: # docker_packaging_jobs:
name: Docker packaging # name: Docker packaging
uses: "./.github/workflows/docker_packaging_jobs.yml" # uses: "./.github/workflows/docker_packaging_jobs.yml"
with: # with:
# We don't publish our Docker images in this pipeline, but when building them # # We don't publish our Docker images in this pipeline, but when building them
# for testing, let's use the nightly tag. # # for testing, let's use the nightly tag.
dockerTag: nightly # dockerTag: nightly
snap_packaging_jobs: snap_packaging_jobs:
name: Snap packaging name: Snap packaging
uses: "./.github/workflows/snap_packaging_jobs.yml" uses: "./.github/workflows/snap_packaging_jobs.yml"
+68 -68
View File
@@ -13,31 +13,31 @@ permissions:
contents: read contents: read
jobs: jobs:
gha_build_snap: # gha_build_snap:
name: Build certbot ${{ matrix.build-for }} # name: Build certbot ${{ matrix.build-for }}
runs-on: ${{ matrix.build-on }} # runs-on: ${{ matrix.build-on }}
strategy: # strategy:
fail-fast: false # fail-fast: false
matrix: # matrix:
include: # include:
- build-for: arm64 # - build-for: arm64
build-on: ubuntu-24.04-arm # build-on: ubuntu-24.04-arm
- build-for: amd64 # - build-for: amd64
build-on: ubuntu-24.04 # build-on: ubuntu-24.04
steps: # steps:
- name: checkout # - name: checkout
uses: actions/checkout@v6.0.2 # uses: actions/checkout@v6.0.2
with: # with:
persist-credentials: false # persist-credentials: false
- uses: snapcore/action-build@v1.3.0 # - uses: snapcore/action-build@v1.3.0
id: build # id: build
with: # with:
snapcraft-args: "--build-for=${{ matrix.build-for }}" # snapcraft-args: "--build-for=${{ matrix.build-for }}"
- name: Store snap artifact # - name: Store snap artifact
uses: actions/upload-artifact@v7.0.0 # uses: actions/upload-artifact@v7.0.0
with: # with:
name: snap-certbot-${{ matrix.build-for }} # name: snap-certbot-${{ matrix.build-for }}
path: ${{ steps.build.outputs.snap }} # path: ${{ steps.build.outputs.snap }}
generate_dns_list_matrix: generate_dns_list_matrix:
name: List DNS package names name: List DNS package names
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -52,38 +52,38 @@ jobs:
run: | run: |
DNS_NAMES="$(echo certbot-dns-* | jq -R -s -c 'split(" ")[:-1]')" DNS_NAMES="$(echo certbot-dns-* | jq -R -s -c 'split(" ")[:-1]')"
echo "dns-dirs=$DNS_NAMES" >> "$GITHUB_OUTPUT" echo "dns-dirs=$DNS_NAMES" >> "$GITHUB_OUTPUT"
gha_build_dns_snaps: # gha_build_dns_snaps:
name: Build ${{ matrix.dns-dir }} ${{ matrix.build-for }} # name: Build ${{ matrix.dns-dir }} ${{ matrix.build-for }}
needs: generate_dns_list_matrix # needs: generate_dns_list_matrix
runs-on: ${{ matrix.build-on }} # runs-on: ${{ matrix.build-on }}
strategy: # strategy:
fail-fast: false # fail-fast: false
matrix: # matrix:
dns-dir: ${{ fromJSON(needs.generate_dns_list_matrix.outputs.dns-dirs) }} # dns-dir: ${{ fromJSON(needs.generate_dns_list_matrix.outputs.dns-dirs) }}
build-for: [arm64, amd64] # build-for: [arm64, amd64]
include: # include:
- build-for: arm64 # - build-for: arm64
build-on: ubuntu-24.04-arm # build-on: ubuntu-24.04-arm
- build-for: amd64 # - build-for: amd64
build-on: ubuntu-24.04 # build-on: ubuntu-24.04
steps: # steps:
- name: checkout # - name: checkout
uses: actions/checkout@v6.0.2 # uses: actions/checkout@v6.0.2
with: # with:
persist-credentials: false # persist-credentials: false
- name: generate dns snapcraft.yamls # - name: generate dns snapcraft.yamls
run: | # run: |
tools/snap/generate_dnsplugins_all.sh # unnecessarily doing every file # tools/snap/generate_dnsplugins_all.sh # unnecessarily doing every file
- uses: snapcore/action-build@v1.3.0 # - uses: snapcore/action-build@v1.3.0
id: build # id: build
with: # with:
snapcraft-args: "--build-for=${{ matrix.build-for }}" # snapcraft-args: "--build-for=${{ matrix.build-for }}"
path: ${{ matrix.dns-dir }} # path: ${{ matrix.dns-dir }}
- name: Store snap artifact # - name: Store snap artifact
uses: actions/upload-artifact@v7.0.0 # uses: actions/upload-artifact@v7.0.0
with: # with:
name: snap-${{ matrix.dns-dir }}-${{ matrix.build-for }} # name: snap-${{ matrix.dns-dir }}-${{ matrix.build-for }}
path: ${{ steps.build.outputs.snap }} # path: ${{ steps.build.outputs.snap }}
launchpad_build_all: launchpad_build_all:
name: Build ${{ matrix.target }} armhf name: Build ${{ matrix.target }} armhf
runs-on: runs-on:
@@ -132,7 +132,7 @@ jobs:
snap_run: snap_run:
name: Test certbot ${{ matrix.arch-name }} name: Test certbot ${{ matrix.arch-name }}
needs: needs:
- gha_build_snap # - gha_build_snap
- launchpad_build_all - launchpad_build_all
runs-on: runs-on:
- ${{ matrix.run-on }} - ${{ matrix.run-on }}
@@ -140,10 +140,10 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- arch-name: arm64 # - arch-name: arm64
run-on: ubuntu-24.04-arm # run-on: ubuntu-24.04-arm
- arch-name: amd64 # - arch-name: amd64
run-on: ubuntu-24.04 # run-on: ubuntu-24.04
- arch-name: armhf - arch-name: armhf
run-on: ubuntu-24.04-arm run-on: ubuntu-24.04-arm
steps: steps:
@@ -185,8 +185,8 @@ jobs:
snap_dns_run: snap_dns_run:
name: Test DNS ${{ matrix.arch-name }} name: Test DNS ${{ matrix.arch-name }}
needs: needs:
- gha_build_dns_snaps # - gha_build_dns_snaps
- gha_build_snap # - gha_build_snap
- launchpad_build_all - launchpad_build_all
runs-on: runs-on:
- ${{ matrix.run-on }} - ${{ matrix.run-on }}
@@ -194,10 +194,10 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- arch-name: arm64 # - arch-name: arm64
run-on: ubuntu-24.04-arm # run-on: ubuntu-24.04-arm
- arch-name: amd64 # - arch-name: amd64
run-on: ubuntu-24.04 # run-on: ubuntu-24.04
- arch-name: armhf - arch-name: armhf
run-on: ubuntu-24.04-arm run-on: ubuntu-24.04-arm
steps: steps: