Skip to content

Commit

Permalink
Repaired taskfile and added description to all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
werniq committed Oct 24, 2024
1 parent 44cc1e9 commit 2f1d9ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: '3'

env:
IMAGE_NAME: '{{ .IMAGE_NAME | default "<YOUR-USERNAME>/<IMAGE-NAME>:<IMAGE-TAG>>" }}'
IMAGE_NAME: '{{ .IMAGE_NAME | default "<YOUR-USERNAME>/<IMAGE-NAME>:<IMAGE-TAG>" }}'

tasks:
certs_windows:
desc: "Generate SSL certificates for Windows environment using OpenSSL, including CA and server certificates."
cmds:
- mkdir -p "./cmd/proxy/.cert"
- openssl ecparam -out ./cmd/proxy/.cert/ca.key -name prime256v1 -genkey
Expand All @@ -16,6 +17,7 @@ tasks:
- openssl x509 -in ./cmd/proxy/.cert/server.crt -text -noout

certs:
desc: "Generate SSL certificates for non-Windows environments using OpenSSL, including CA and server certificates."
cmds:
- mkdir -p "./cmd/proxy/.cert"
- openssl ecparam -out ./cmd/proxy/.cert/ca.key -name prime256v1 -genkey
Expand All @@ -27,13 +29,16 @@ tasks:
- openssl x509 -in ./cmd/proxy/.cert/server.crt -text -noout

mocks:
desc: "Generate mock implementations for testing using Mockery."
cmds:
- mockery

dockerBuild:
desc: "Build a Docker image using the specified Dockerfile and tag it with the provided image name."
cmds:
- docker build -t {{ .IMAGE_NAME }] -f .\build\Dockerfile .
- docker build -t {{ .IMAGE_NAME }} -f .\build\Dockerfile .

dockerPush:
desc: "Push the Docker image to the remote registry with the specified image name."
cmds:
- docker push {{ .IMAGE_NAME }]
- docker push {{ .IMAGE_NAME }}

0 comments on commit 2f1d9ac

Please sign in to comment.