27 lines
651 B
YAML
27 lines
651 B
YAML
name: Build images
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Lint", "Tests"]
|
|
types:
|
|
- completed
|
|
#make docker-build docker-push IMG=example/virtualhost-operator:latest
|
|
jobs:
|
|
build-docker:
|
|
name: Build docker image
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Clone the code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: build image
|
|
run: |
|
|
make docker-build docker-push IMG=d.lilpenguins.com/locust-operator:latest
|
|
make docker-build docker-push IMG=d.lilpenguins.com/locust-operator:${{gitea.sha}}
|