Skip to content

🌱 Update Go dependencies. (#46) #173

🌱 Update Go dependencies. (#46)

🌱 Update Go dependencies. (#46) #173

Workflow file for this run

# ---
# # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# name: goreleaser
# on:
# push:
# tags:
# - v*
# branches:
# - main
# jobs:
# goreleaser:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Setup Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Login to ghcr.io for CI
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Run GoReleaser for snapshot
# if: "!startsWith(github.ref, 'refs/tags/')"
# uses: goreleaser/goreleaser-action@v5
# with:
# version: latest
# args: release --snapshot --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish latest snapshot image
# if: "!startsWith(github.ref, 'refs/tags/')"
# run: |
# for image in $(docker images --format "{{.Repository}}:{{.Tag}}" | grep hetzner-cloud-controller-manager); do
# echo pushing "$image"
# docker push $image
# done
# - name: Run GoReleaser for tag
# if: "startsWith(github.ref, 'refs/tags/')"
# uses: goreleaser/goreleaser-action@v5
# with:
# version: latest
# args: release --clean
# env:
# # https://github.com/goreleaser/goreleaser/blob/3345f8c9c5b287198a29d3db228388148b788c5e/www/docs/customization/builds.md?plain=1#L416-L418
# GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CHART_REPO_REMOTE: "https://${{ secrets.HCLOUD_BOT_TOKEN }}@github.com/hetznercloud/helm-charts"
# - name: Clear
# if: always()
# run: rm -f ${HOME}/.docker/config.json