Skip to content

better design

better design #28

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
[push]
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Build
run: make build
- name: what gblic?
run: ldd --version ldd
- name: Test
run: go test ./...
- name: Get shortsha
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Push to GCR
uses: RafikFarhad/[email protected]
with:
gcloud_service_key: ${{ secrets.GCP_SERVICE_ACCOUNT }}
registry: us-central1-docker.pkg.dev
project_id: ian-rose/docker-1
image_name: webapp
image_tag: latest,${{ steps.vars.outputs.sha_short }}
build_args: BIN=bin/webapp