Build #15
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: {submodules: recursive} | |
- uses: actions/setup-go@v4 | |
with: {go-version: '=1.19.8'} | |
- name: Decide what we're going to call this | |
run: | | |
TAG_SPECIFIC=${{ github.ref_name }} | |
# if we're building from a branch (i.e., not a tag) then add | |
# the short sha so we can have more than one build per branch | |
if [[ ${{ github.ref }} != refs/tags/* ]]; then | |
TAG_SPECIFIC=${TAG_SPECIFIC}-$(git rev-parse --short HEAD) | |
fi | |
echo $TAG_SPECIFIC | |
echo "TAG_SPECIFIC=$TAG_SPECIFIC" >> $GITHUB_ENV | |
- name: Make | |
run: | | |
make SUFFIX=${TAG_SPECIFIC} all docker-build | |
- name: Push | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
docker login -u epic-gateway+github_actions -p ${{ secrets.QUAY_EPIC_GATEWAY }} quay.io | |
make SUFFIX=${TAG_SPECIFIC} go-push docker-push | |
- name: Create a new draft release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
draft: true | |
files: | | |
epic-install.tar.gz | |
deploy/epic-resource-model.yaml | |
bin/manager | |
deploy/manager.service | |
deploy/manager-restart.service | |
deploy/manager-restart.path |