Skip to content

Merge pull request #559 from Xieql/pipeline-controller #2

Merge pull request #559 from Xieql/pipeline-controller

Merge pull request #559 from Xieql/pipeline-controller #2

Workflow file for this run

name: Build and Push Images
on:
push:
tags:
- "v*.*.*"
jobs:
build-push:
runs-on: ubuntu-latest
env:
# Gets the tag name and removes the 'v' prefix
VERSION: ${{ github.ref_name#v }}

Check failure on line 13 in .github/workflows/release-image.yaml

View workflow run for this annotation

GitHub Actions / Build and Push Images

Invalid workflow file

The workflow is not valid. .github/workflows/release-image.yaml (Line: 13, Col: 16): Unexpected symbol: 'ref_name#v'. Located at position 8 within expression: github.ref_name#v
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Compile
run: make build
- name: Build Docker Image
run: VERSION=$VERSION make docker
- name: Login to ghcr.io
# This is where you will update the PAT to GITHUB_TOKEN
run: echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u $ --password-stdin
- name: Push Docker Image
run: VERSION=$VERSION make docker-push