Skip to content

GitHub actions releases #17

GitHub actions releases

GitHub actions releases #17

Workflow file for this run

name: Release
on:
pull_request:
branches:
- master
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.ref }}
-
name: Print commit info
run: |
echo "GITHUB_REF: ${{ github.ref }}"
echo "GITHUB_SHA: ${{ github.sha }}"
git log -1
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.3
-
name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
push:
runs-on: ubuntu-latest
needs: goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build & Push
uses: docker/build-push-action@v6
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: similarweb/bbox
tag_with_ref: true
path: /github/workspace