ci: add docker build to release
This commit is contained in:
parent
d713c25fa5
commit
e73d8c5eb3
4 changed files with 28 additions and 4 deletions
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
|
@ -26,10 +26,16 @@ jobs:
|
|||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||
- name: Install GoReleaser
|
||||
uses: https://github.com/goreleaser/goreleaser-action@v5
|
||||
uses: https://github.com/goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
install-only: true
|
||||
|
||||
- name: Docker login
|
||||
run: |
|
||||
REGISTRY="${GITHUB_SERVER_URL#https://}"
|
||||
echo "${{ secrets.PACKAGES_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.repository_owner }}" --password-stdin
|
||||
echo "DOCKER_REGISTRY=$REGISTRY" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Run GoReleaser
|
||||
run: |
|
||||
unset GITHUB_TOKEN
|
||||
|
|
@ -37,3 +43,4 @@ jobs:
|
|||
env:
|
||||
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
|
||||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
|
||||
DOCKER_ORG: ${{ github.repository_owner }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue