merge commit 14b37e4e3e8fcabbe88889c11afae900d7af3626
This commit is contained in:
commit
5a754ebe51
26
.gitea/workflow/deploy.yml
Normal file
26
.gitea/workflow/deploy.yml
Normal file
@ -0,0 +1,26 @@
|
||||
name: Deploy
|
||||
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'staging'
|
||||
|
||||
jobs:
|
||||
CreateImage:
|
||||
runs-on: [hubstaging]
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.0.1
|
||||
with:
|
||||
runner: hubstaging
|
||||
secrets:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
DeployService:
|
||||
runs-on: [hubstaging]
|
||||
needs: CreateImage
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.0.1
|
||||
with:
|
||||
runner: hubstaging
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM golang:latest as builder
|
||||
FROM gitea.pena/penadevops/container-images/golang:main as builder
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
@ -6,7 +6,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o heruvym
|
||||
|
||||
FROM alpine
|
||||
FROM gitea.pena/penadevops/container-images/alpine:main
|
||||
COPY --from=builder /app/heruvym .
|
||||
COPY prod.key .
|
||||
COPY prod.crt .
|
||||
|
Loading…
Reference in New Issue
Block a user