cert-manager-webhook-dnsimple/.forgejo/workflows/release.yaml

42 lines
1.1 KiB
YAML
Raw Normal View History

2024-08-01 10:51:47 -05:00
name: goreleaser
on:
push:
# run only against tags
tags:
- "*"
permissions:
contents: write
# packages: write
# issues: write
jobs:
goreleaser:
runs-on: docker
2024-08-01 11:32:28 -05:00
container:
image: ghcr.io/goreleaser/goreleaser:v2.4.4
2024-08-01 10:51:47 -05:00
steps:
2024-08-01 11:36:55 -05:00
- name: Checkout
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-08-01 14:12:57 -05:00
REPO_URL: https://x-access-token:${GITHUB_TOKEN}@git.hsn.dev/${{ github.repository }}
run: |
2024-08-01 13:43:34 -05:00
printenv
2024-08-01 12:48:15 -05:00
mkdir -p ${{ github.workspace }}
echo "URL: ${{ env.REPO_URL }}"
2024-08-01 13:05:33 -05:00
git clone ${{ env.REPO_URL }} ${{ github.workspace }}
echo "Repository cloned!"
2024-08-01 14:12:57 -05:00
git checkout ${GITHUB_REF_NAME}
2024-08-01 15:19:00 -05:00
- name: Docker Login
run: |
2024-08-01 15:32:39 -05:00
echo ${{ secrets.PACKAGE_PAT_TOKEN }} | docker login -u x-access-token --password-stdin git.hsn.dev
2024-08-01 11:36:55 -05:00
- name: Run goreleaser
2024-08-01 13:05:02 -05:00
env:
GITHUB_TOKEN: ""
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
2024-08-01 13:36:02 -05:00
KO_DOCKER_REPO: git.hsn.dev/${{ github.repository_owner }}/cert-manager-webhook-dnsimple
2024-08-01 11:36:55 -05:00
run: |
2024-08-01 11:32:28 -05:00
echo ${{ github.workspace }}
2024-08-01 15:19:00 -05:00
goreleaser release --clean