From ebf80c3d90d34a9421c120c3379dd7b183e965e3 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Mon, 21 Aug 2023 14:38:29 +0000 Subject: [PATCH] [CI] update DNS on experimental release (#1298) Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1298 Co-authored-by: oliverpool Co-committed-by: oliverpool --- .forgejo/workflows/publish-release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.forgejo/workflows/publish-release.yml b/.forgejo/workflows/publish-release.yml index c76e78cc12..f7ab4586fb 100644 --- a/.forgejo/workflows/publish-release.yml +++ b/.forgejo/workflows/publish-release.yml @@ -58,3 +58,22 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} verbose: ${{ secrets.VERBOSE }} + + + - name: set up go for the DNS update below + uses: https://code.forgejo.org/actions/setup-go@v4 + if: secrets.ROLE == 'forgejo-experimental' + with: + go-version: ">=1.21" + check-latest: true + - name: update the _release.experimental DNS record + if: secrets.ROLE == 'forgejo-experimental' + uses: https://code.forgejo.org/actions/ovh-dns-update@v1 + with: + subdomain: _release.experimental + domain: forgejo.com # there is a CNAME from .org to .com (for security reasons) + record-id: 5283602601 + value: v=${{ github.ref_name }} + ovh-app-key: ${{ secrets.OVH_APP_KEY }} + ovh-app-secret: ${{ secrets.OVH_APP_SECRET }} + ovh-consumer-key: ${{ secrets.OVH_CON_KEY }}