mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-12-22 15:45:48 +02:00
action: support for GPG signing
This commit is contained in:
parent
f886973249
commit
c6d7843bab
6 changed files with 257 additions and 12 deletions
|
@ -4,6 +4,7 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- id: forgejo
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v1
|
||||
with:
|
||||
|
@ -11,21 +12,21 @@ jobs:
|
|||
password: admin1234
|
||||
image-version: 1.19
|
||||
|
||||
- name: Upload
|
||||
- name: Make the forgejo-release action available for testing
|
||||
run: |
|
||||
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
|
||||
|
||||
- name: Upload and download
|
||||
- name: Actions tests from testdata/upload-download/.forgejo/workflows
|
||||
run: |
|
||||
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
||||
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
||||
|
||||
- name: Nested upload and download
|
||||
- name: Actions tests from testdata/nested-upload-download/.forgejo/workflows
|
||||
run: |
|
||||
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
||||
forgejo-test-helper.sh run_workflow testdata/nested-upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser nested-upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
||||
|
||||
- name: Self test
|
||||
- name: Integration tests of the supporting script forgejo-release.sh
|
||||
run: |
|
||||
set -ex
|
||||
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
||||
|
|
|
@ -75,5 +75,13 @@ runs:
|
|||
|
||||
export RETRY="${{ inputs.download-retry }}"
|
||||
|
||||
export TMP_DIR=$(mktemp -d)
|
||||
trap "rm -fr $TMP_DIR" EXIT
|
||||
|
||||
echo -n "${{ inputs.gpg-private-key }}" > $TMP_DIR/gpg-private-key
|
||||
export GPG_PRIVATE_KEY=$TMP_DIR/gpg-private-key
|
||||
echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
|
||||
export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase"
|
||||
|
||||
forgejo-release.sh ${{ inputs.direction }}
|
||||
shell: bash
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
name: Upload & Download a Forgejo Release
|
||||
|
||||
name: Upload (and download) a release to (and from) a project found in a Forgejo instance that is different from the one running the workflow
|
||||
on: [push]
|
||||
jobs:
|
||||
setup-forgejo:
|
||||
|
|
117
testdata/upload-download/.forgejo/workflows/gpg-no-passphrase.yml
vendored
Normal file
117
testdata/upload-download/.forgejo/workflows/gpg-no-passphrase.yml
vendored
Normal file
|
@ -0,0 +1,117 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
name: Upload/download a signed release (no GPG passphrase)
|
||||
on: [push]
|
||||
env:
|
||||
gpg_private_key: |
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
lQVYBGRwcNcBDADUZUxCbjw0hOtMaLIYhEbgYFR2Oyxz8IDJTVALuLGQbHnLM6La
|
||||
IVxGwk9CgxX8vP9pN3Fy+uX+KInV41bLGd30qPDvqCuAbAo4bAT0Sg/fN3A7fuSX
|
||||
KfUStJbY3OyQZQbHWxOpsyIziIqBMXipgFQD/IncRMhWjcQh4znnkUb+e3oj1/f1
|
||||
9eErwfgsiDsj7M/FSWolrwttd2VQah+WumhVFjvb+M4j5zI9UBNGNsVCTxQXTN5L
|
||||
MtPJuypuMzawmTvUNm7470VDgO/dCWGlZ7gshoNd2fNnFCMgTSWYu9C8zFCkFOi2
|
||||
ZiwmIQTu3QBDNXaqR7r9j1s9q4hrloEZwmTFXV+PvEczUXx+8Scq8ONZGJdjo6NL
|
||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
||||
D7vdBA4XSjFpIAEvqFE4jdBWAi09oqLzHNw6iQG8BBgBCgAmFiEEANPZ7fb3VHPW
|
||||
C0w3UsTUTh9UzVQFAmRwcNcCGwwFCQPCZwAACgkQUsTUTh9UzVTCDwv/fUJxiNGZ
|
||||
VBArNvxGoCVgewjisEAHsEg/X7dXYlQgHITbtV+lajCOXesuRy5hh3L/NPVDm9Yx
|
||||
WB0oZ/sV/qM7yisvGmf6OFxSvaGPr/aQhwIdkXw42veHe32pROujpmclI4QzIV9P
|
||||
4zOFUR0JHEaaJrS50S2VMmgX5fq2vBOQY8WIo8fUncPk1byeqwz9WfunPMZ+yc4C
|
||||
KIdQ1ysd+YFq9mTwYei/ZFQFyk+X3xxoIhlMd1LkynXV/Swrv11WBxqk0HPaWgc5
|
||||
WhUrK+gniZjPQVjOyHiKhu2rCBRXO1ipDdgdBX1aRe3XzsYJt0fI2qewm7ItxPk2
|
||||
wbbrfDD3kRu19PbxZYxesKLr5Pj0suIPNI0VWp2Te6HkcRgB8+fR8DAtbOCbo8Oy
|
||||
GgK0fz3gzhvhAUxoCRayo4iGTA6W4N+sryuOdDikRIirVxgksA2LLMwQzaSqllkh
|
||||
AoH/WKXfBxOQo9qDcxdBnCkM0bZF5tgrNqYf1IN3bZr2pV4CYo3Z2JaL
|
||||
=5CPG
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
jobs:
|
||||
upload-gpg-no-passphrase:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-upload
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v1.2
|
||||
token: FORGEJO_TOKEN
|
||||
release-dir: upload-dir
|
||||
release-notes: "RELEASE NOTES"
|
||||
gpg-private-key: ${{ env.gpg_private_key }}
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-download
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: download
|
||||
tag: v1.2
|
||||
token: FORGEJO_TOKEN
|
||||
release-dir: download-dir
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
run: |
|
||||
test "$(find download-dir -name '*.asc')"
|
||||
diff -u upload-dir download-dir
|
121
testdata/upload-download/.forgejo/workflows/gpg.yml
vendored
Normal file
121
testdata/upload-download/.forgejo/workflows/gpg.yml
vendored
Normal file
|
@ -0,0 +1,121 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
name: Upload/download a signed release (with a GPG passphrase)
|
||||
on: [push]
|
||||
env:
|
||||
gpg_passphrase: admin1234
|
||||
gpg_private_key: |
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
lQWGBGRwcUEBDACzKYvl19Gqzdu2rwLx+Me+GvJkSemnvxdPvZhg+94uLmn+9oZp
|
||||
jmaLA8Kbjb73zfitKOdJojRKuBwyNtP7iPt85nWeWwq4LKHCQUo81Uh4lzv/0N58
|
||||
PNwFdRCHtD8MnhBRNv/kwccXyriikVbbi/dj+ISdKE7ueZ7SjgMFAa8JouiFldqZ
|
||||
uU7FgxaFxQ5o5NqTJF4XOdZQakW2A5PhLDmEMQ/fPJ5gFXPBzu+yCvAo0G6QkcJ5
|
||||
43mEOpJQwS79I1a8oS5txGiV0jP8PtyyAdIGuPW2B3oxmaNXllttYg2pnYR0Tr96
|
||||
5uMr8B2wcBdWAewH1wP0QKcKol5vxYuSwCOkwIjXtSLWMpYjtaS4FcWObUhvJiDI
|
||||
ypjLn1y2H6hW3oNT9W5nvaEgWqafdwBhF2BQJYcxAAmqIoIRY8k/JMLKuG6xdM4b
|
||||
opCCo37syvcHU4jNvXu7vr/8w7Y5Wc/yIVQARcm65DAZ3OPmIYKp8BDUnDgweUZj
|
||||
WaOWdYGB7+c8rDUAEQEAAf4HAwKdrS9IwGeeff9kQReq6FHd6Pp8KB807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MLh197dDv6uc6IFAmRwcUECGwwFCQPCZwAACgkQ197dDv6uc6K7qQv/
|
||||
brSaC5ICGKIpzsIf6lIp6Wrn7smsGh9BI+dH19prXQ5lT6Iv+IFZmNiDGXtVzOOK
|
||||
Y8VgqwJmf/XwjgH2dod3X61ts3krtnZ2znCgrz08NRxG4G9ok8Fa5fLCrZBWi7UU
|
||||
4ZH63rS9optmqEMzwCwQ94U0glU8C9Hc44MVCSrrrD2+/H/PTFVr37iwBugZsDq4
|
||||
4gUTyGBYumnzTVyi2ZbJn89Amd8fl280QWSkdebmljnk4OjlTZbXkRGiIu65ggr9
|
||||
ikg11TRlPD0L9NTo8w2OtjoYXr50xL1odyNlz6RKcQlX80EjKMXvVxNE32J4JCBj
|
||||
tHrqiTDCs1bdXTh2xCvF0DatJMeUn3/WDn6UYjZzlZvZCOcjQLrPgJplJowLwd96
|
||||
YaUfZ11WNAgNy8vZjUroMNyD2J+GsLr+QZOqFRP362+Juj5MqANXAuKEQ4qzs2Fv
|
||||
/Z6cUYKuENmsNDY8ORG7ON95AFl5i0daP7+EoHDMb7+tyG54JxE4Szxhe4skRXXr
|
||||
=Ze5I
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
jobs:
|
||||
upload-gpg:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-upload
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v1.1
|
||||
token: FORGEJO_TOKEN
|
||||
release-dir: upload-dir
|
||||
release-notes: "RELEASE NOTES"
|
||||
gpg-private-key: ${{ env.gpg_private_key }}
|
||||
gpg-passphrase: ${{ env.gpg_passphrase }}
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-download
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: download
|
||||
tag: v1.1
|
||||
token: FORGEJO_TOKEN
|
||||
release-dir: download-dir
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
run: |
|
||||
test "$(find download-dir -name '*.asc')"
|
||||
diff -u upload-dir download-dir
|
|
@ -1,12 +1,9 @@
|
|||
#
|
||||
# The following:
|
||||
# if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
# is a workaround until https://codeberg.org/forgejo/forgejo/issues/608 is fixed
|
||||
#
|
||||
name: Upload & Download a Forgejo Release
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
name: Upload (and download) a release to (and from) the project that runs the workflow
|
||||
on: [push]
|
||||
jobs:
|
||||
setup-forgejo:
|
||||
upload-download:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
Loading…
Reference in a new issue