Skip to content

chore(deps): pin dependencies #496

chore(deps): pin dependencies

chore(deps): pin dependencies #496

Workflow file for this run

# name of the action
name: go
# trigger on pull_request or push events
on:
pull_request:
push:
branches-ignore:
- main
# pipeline to execute
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: install go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: '>=1.19.0'
- name: build
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: '0'
run: |
go build \
-ldflags '-extldflags "-static"' \
-o plugins/go/vela-sample \
plugins/go/main.go
- name: docker
uses: elgohr/Publish-Docker-Github-Action@742a180fa47f3adfb5115902ae4955acc6ad769b # v4
with:
name: target/vela-sample:go
workdir: plugins/go
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}