cert-manager-webhook-dnsimple/.forgejo/workflows/release.yaml
Renovate Bot 44ba51dcc0
All checks were successful
/ test (pull_request) Successful in 4m15s
Update ghcr.io/goreleaser/goreleaser Docker tag to v2.4.5
2024-11-14 15:31:11 +00:00

42 lines
No EOL
1.1 KiB
YAML

name: goreleaser
on:
push:
# run only against tags
tags:
- "*"
permissions:
contents: write
# packages: write
# issues: write
jobs:
goreleaser:
runs-on: docker
container:
image: ghcr.io/goreleaser/goreleaser:v2.4.5
steps:
- name: Checkout
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_URL: https://x-access-token:${GITHUB_TOKEN}@git.hsn.dev/${{ github.repository }}
run: |
printenv
mkdir -p ${{ github.workspace }}
echo "URL: ${{ env.REPO_URL }}"
git clone ${{ env.REPO_URL }} ${{ github.workspace }}
echo "Repository cloned!"
git checkout ${GITHUB_REF_NAME}
- name: Docker Login
run: |
echo ${{ secrets.PACKAGE_PAT_TOKEN }} | docker login -u x-access-token --password-stdin git.hsn.dev
- name: Run goreleaser
env:
GITHUB_TOKEN: ""
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
KO_DOCKER_REPO: git.hsn.dev/${{ github.repository_owner }}/cert-manager-webhook-dnsimple
run: |
echo ${{ github.workspace }}
goreleaser release --clean