Skip to content

fix(api/schedule): early exit for empty name (#996) #856

fix(api/schedule): early exit for empty name (#996)

fix(api/schedule): early exit for empty name (#996) #856

Workflow file for this run

# name of the action
name: publish
# trigger on push events with branch main
on:
push:
branches: [ main ]
# pipeline to execute
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
- name: install go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true
check-latest: true
- name: build
env:
GOOS: linux
CGO_ENABLED: '1'
run: |
make build-static-ci
- name: publish
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
with:
name: target/vela-server
cache: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: publish-alpine
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
with:
name: target/vela-server
cache: true
tags: "latest-alpine"
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile-alpine