Skip to content

.github/workflows/epic-gateway.yaml #2

.github/workflows/epic-gateway.yaml

.github/workflows/epic-gateway.yaml #2

Workflow file for this run

on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with: {go-version: '=1.19.8'}
- name: Decide what we're going to call this
run: |
TAG=${{ 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=${TAG}-$(git rev-parse --short HEAD)
fi
echo $TAG
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Make
run: |
make VERSION="${{ env.TAG }}" docker-build
- name: Push
run: |
docker login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} quay.io
make VERSION="${{ env.TAG }}" docker-push
- name: Create a new pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "${{ env.TAG }}"
with:
files: |

Check failure on line 39 in .github/workflows/epic-gateway.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/epic-gateway.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/epic-gateway.yaml (Line: 39, Col: 11): A mapping was not expected
build/marin3r-manifest-epic.yaml