Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvarko committed Dec 22, 2023
1 parent 9edf0ae commit d4a5654
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- name: Run Build
run: |
. $(werf ci-env github --as-file)
echo "${{ secrets.STAGE_ENV }}" > .env.deploy
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --dev
# stage-deploy:
# name: Deploy on stage
Expand Down
15 changes: 13 additions & 2 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,31 @@ docker:
WORKDIR: /go/src/github.com/dl-solarity/frontend-link-shortener-svc
git:
- add: /
to: /go/src/github.com/dl-solarity/frontend-link-shortener-svc
to: /
stageDependencies:
install:
- go.mod
- go.sum
setup:
- "**/*"
shell:
beforeInstall:
- apk add git build-base
install:
- go mod tidy
- go mod vendor
setup:
- export CGO_ENABLED=0
- export GO111MODULE=off
- export GOOS=linux
- go build -o /usr/local/bin/frontend-link-shortener-svc /go/src/github.com/dl-solarity/frontend-link-shortener-svc
- go build -o /usr/local/bin/frontend-link-shortener-svc /go/src/gitlab.com/dl-solarity/frontend-link-shortener-svc


---
image: service
from: alpine:3.18
docker:
ENTRYPOINT: frontend-link-shortener-svc
shell:
setup:
- apk add --no-cache ca-certificates
Expand Down

0 comments on commit d4a5654

Please sign in to comment.