Add some testing flows for magefile #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
# verify: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Set up Go | |
# uses: actions/setup-go@v2 | |
# with: | |
# go-version: 1.21 | |
# - name: Check out code | |
# uses: actions/checkout@v2 | |
# - name: Run mage.go | |
# run: go run mage.go | |
release: | |
# needs: verify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set environment variables | |
run: | | |
echo "BUILD_IMAGE=golang:1.21" >> $GITHUB_ENV | |
echo "KO_DOCKER_REPO=alperencelik/kubemox" >> $GITHUB_ENV | |
- name: Run mage.go Release | |
run: go run mage.go Release |