Skip to content

fix(deps): update module github.com/google/go-github/v73 to v74 (#1333) #146

fix(deps): update module github.com/google/go-github/v73 to v74 (#1333)

fix(deps): update module github.com/google/go-github/v73 to v74 (#1333) #146

Workflow file for this run

# name of the action
name: prerelease
# trigger on push events with `v*` in tag
on:
push:
tags:
- "v*"
permissions:
contents: read
# pipeline to execute
jobs:
prerelease:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
- name: install go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
# use version from go.mod file
go-version-file: "go.mod"
cache: true
check-latest: true
- name: setup
run: |
# setup git tag in Actions environment
echo "GITHUB_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: build
env:
GOOS: linux
CGO_ENABLED: "1"
run: |
make build-static-ci
- name: login to dockerhub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: extract metadata
id: meta
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
with:
images: target/vela-server
tags: |
# only on push tag, "raw" because {{version}} strips "v" prefix
type=semver,pattern={{raw}}
- name: build and push image
id: push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
prerelease_alpine:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
- name: install go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
# use version from go.mod file
go-version-file: "go.mod"
cache: true
check-latest: true
- name: setup
run: |
# setup git tag in Actions environment
echo "GITHUB_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: build
env:
GOOS: linux
CGO_ENABLED: "1"
run: |
make build-static-ci
- name: login to dockerhub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: extract metadata
id: meta
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
with:
images: target/vela-server
tags: |
# only on push tag, "raw" because {{version}} strips "v" prefix
type=semver,pattern={{raw}},suffix=-alpine
- name: build and push image
id: push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: ./Dockerfile-alpine
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}