Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 3f4730f

Browse files
committed
feature: build+push workflow actions, dockerfile fix
1 parent 88807c8 commit 3f4730f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ jobs:
2222
uses: actions/setup-go@v2
2323
with:
2424
go-version: 1.15
25-
- name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@v2
27-
with:
28-
version: latest
29-
args: release --rm-dist
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3225
- name: Login to DockerHub
3326
uses: docker/login-action@v1
3427
with:
@@ -44,5 +37,12 @@ jobs:
4437
build-args: |
4538
BUILD_TIME=${{ steps.vars.outputs.build_time }}
4639
VCS_REF=${{ steps.vars.outputs.sha_short }}
40+
- name: Run GoReleaser
41+
uses: goreleaser/goreleaser-action@v2
42+
with:
43+
version: latest
44+
args: release --rm-dist
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
- name: Push
4848
run: docker push trendyoltech/certificator:${{ steps.vars.outputs.latest_tag }}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ org.opencontainers.image.description="Creating K8S Secret which type is tls that
1010
org.opencontainers.image.vendor="Trendyol" \
1111
org.opencontainers.image.revision=$VCS_REF \
1212
org.opencontainers.image.created=$BUILD_TIME \
13-
org.opencontainers.image.source="https://https://github.com/Trendyol/k8s-webhook-certificator"
13+
org.opencontainers.image.source="https://github.com/Trendyol/k8s-webhook-certificator"
1414

1515
WORKDIR /app
1616

@@ -24,6 +24,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v .
2424

2525
FROM scratch
2626

27-
COPY --from=builder /app/certificator ./certificator
27+
COPY --from=builder /app/k8s-webhook-certificator ./k8s-webhook-certificator
2828

29-
ENTRYPOINT ["./certificator"]
29+
ENTRYPOINT ["./k8s-webhook-certificator"]

0 commit comments

Comments
 (0)