Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Replace upstream GitHub workflows with own ones
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Apr 25, 2022
1 parent 3c82596 commit 25a9e74
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 150 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/bot_stale.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/goimports.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/goreleaser.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/on-release-publish.yml
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 }}
15 changes: 0 additions & 15 deletions .github/workflows/test.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/test_e2e.yml

This file was deleted.

11 changes: 9 additions & 2 deletions Dockerfile
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"]

0 comments on commit 25a9e74

Please sign in to comment.