Skip to content

Commit

Permalink
fix: Repaired github action, and building docker image instead of pro…
Browse files Browse the repository at this point in the history
…ject, since it can be later pushed
  • Loading branch information
werniq committed Oct 22, 2024
1 parent 19336b4 commit 7173f7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
- name: Download go.mod dependencies
run: go mod download

- name: Build
run: go build -v ./...

- name: Test
- name: Test waffle WAF
run: go test -v ./...

- name: Install go-task to build docker image
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin

- name: Build Waffle docker image
run: task dockerBuild
11 changes: 7 additions & 4 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: '3'

env:
IMAGE_NAME: '{{ .IMAGE_NAME | default "qniw984/waffle:1.0.0" }}'

tasks:
certs_windows:
cmds:
Expand Down Expand Up @@ -27,10 +30,10 @@ tasks:
cmds:
- mockery

docker-build:
dockerBuild:
cmds:
- docker build -t ${IMAGE_NAME} -f .\build\Dockerfile .
- docker build -t {{ .IMAGE_NAME }] -f .\build\Dockerfile .

docker-push:
dockerPush:
cmds:
- docker push ${IMAGE_NAME}
- docker push {{ .IMAGE_NAME }]

0 comments on commit 7173f7e

Please sign in to comment.