Compare commits
23 commits
kaniko
...
developmen
Author | SHA1 | Date | |
---|---|---|---|
1d5fedb0e1 | |||
64ccd05681 | |||
092b1ae434 | |||
c33ca0f91e | |||
61e3aeecac | |||
0d181c1f13 | |||
a624f7c048 | |||
22b5bbc5ef | |||
39c04a0751 | |||
2fdcbfd19c | |||
1f0786a79a | |||
6ae9f6bce6 | |||
1a1b9d6a55 | |||
afe76ece74 | |||
17c2092b42 | |||
238ad6e67f | |||
4ae1d07c67 | |||
fb4eae7a0d | |||
1a8a18b1ed | |||
70b48d31d4 | |||
5f56a2e894 | |||
5b80e0503f | |||
11de6735e1 |
2 changed files with 28 additions and 4 deletions
31
.github/workflows/.github-ci.yaml
vendored
31
.github/workflows/.github-ci.yaml
vendored
|
@ -8,11 +8,28 @@ jobs:
|
|||
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
name: Repository meta
|
||||
id: repository
|
||||
run: |
|
||||
registry=${{ github.server_url }}
|
||||
registry=${registry##http*://}
|
||||
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||
echo "registry=${registry}"
|
||||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||
echo "repository=${repository}"
|
||||
-
|
||||
name: Docker meta
|
||||
uses: docker/metadata-action@v5
|
||||
id: docker
|
||||
with:
|
||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||
-
|
||||
name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.client.c-one-infra.de
|
||||
username: ${{ github.repository }}
|
||||
registry: ${{ steps.repository.outputs.registry }}
|
||||
username: ${{ secrets.PACKAGES_USER }}
|
||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
|
@ -20,9 +37,15 @@ jobs:
|
|||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-flags: '--allow-insecure-entitlement network.host'
|
||||
driver-opts: network=host
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: gitea.client.c-one-infra.de/giteaadmin/app:latest
|
||||
allow: network.host
|
||||
network: host
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.docker.outputs.tags }}
|
||||
|
|
|
@ -5,6 +5,7 @@ COPY ./ ./
|
|||
|
||||
# RUN go mod download
|
||||
|
||||
RUN echo jojo
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci-go cmd/main.go
|
||||
|
||||
# ToDo: use stretch as image for a completly empty container
|
||||
|
|
Loading…
Reference in a new issue