Skip to content

v0.1.5

v0.1.5 #11

Workflow file for this run

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Delete .dockerignore file
run: rm -f .dockerignore
-
name: Prepare
id: prep
run: |
TAG=${GITHUB_REF#refs/tags/}
echo ::set-output name=version::${TAG}
-
name: Run Goreleaser on Goboring docker image
uses: docker/build-push-action@v1
with:
repository: build/goboring
dockerfile: Dockerfile_releaser
push: false
build_args: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }},TAG=${{ steps.prep.outputs.version }},HOMEBREW_TAP_GITHUB_TOKEN=${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
# -
# name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 1.20
# -
# name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v4
# with:
# version: latest
# args: release --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}