Build openbao-csi-provider container image
All checks were successful
/ build-openbao-csi-provider (push) Successful in 1m24s
All checks were successful
/ build-openbao-csi-provider (push) Successful in 1m24s
This commit is contained in:
parent
a582752fc0
commit
4d6dd966a4
2 changed files with 31 additions and 0 deletions
22
.forgejo/workflows/build-openbao-csi-provider.yaml
Normal file
22
.forgejo/workflows/build-openbao-csi-provider.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- containers/openbao-csi-provider/*
|
||||||
|
- .forgejo/workflows/build-openbao-csi-provider.yaml
|
||||||
|
jobs:
|
||||||
|
build-openbao-csi-provider:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: library/docker:dind
|
||||||
|
steps:
|
||||||
|
- run: apk add --no-cache nodejs git
|
||||||
|
- name: login to container registry
|
||||||
|
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
|
||||||
|
- name: build container image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
file: Containerfile
|
||||||
|
context: "{{defaultContext}}:containers/openbao-csi-provider"
|
||||||
|
tags: git.janky.solutions/jankysolutions/infra/openbao-csi-provider:latest
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
9
containers/openbao-csi-provider/Containerfile
Normal file
9
containers/openbao-csi-provider/Containerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM library/golang:1.22 AS build
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
|
RUN git clone -b v1.4.0 https://github.com/openbao/openbao-csi-provider /openbao-csi-provider
|
||||||
|
WORKDIR /openbao-csi-provider
|
||||||
|
RUN go build -o openbao-csi-provider
|
||||||
|
|
||||||
|
FROM gcr.io/distroless/static-debian12:latest
|
||||||
|
COPY --from=build /openbao-csi-provider/openbao-csi-provider /bin/
|
||||||
|
ENTRYPOINT [ "/bin/openbao-csi-provider" ]
|
Loading…
Reference in a new issue