This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
forked from hetznercloud/hcloud-cloud-controller-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace upstream GitHub workflows with own ones
- Loading branch information
1 parent
3c82596
commit 25a9e74
Showing
7 changed files
with
37 additions
and
150 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: go:publish | ||
|
||
on: | ||
release: | ||
types: [ released ] | ||
|
||
jobs: | ||
go-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: | | ||
ghcr.io/23technologies/hcloud-cloud-controller-manager:latest | ||
ghcr.io/23technologies/hcloud-cloud-controller-manager:${{ github.ref_name }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
FROM alpine:3.12 | ||
FROM golang:1.17 as builder | ||
WORKDIR /build | ||
ADD go.mod go.sum /build/ | ||
RUN go mod download | ||
ADD . /build/ | ||
RUN CGO_ENABLED=0 go build -o controller.bin . | ||
|
||
FROM alpine:3.13 | ||
RUN apk add --no-cache ca-certificates bash | ||
COPY hcloud-cloud-controller-manager /bin/hcloud-cloud-controller-manager | ||
COPY --from=builder /build/controller.bin /bin/hcloud-cloud-controller-manager | ||
ENTRYPOINT ["/bin/hcloud-cloud-controller-manager"] |