Compare commits
30 commits
kaniko
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 116927f472 | |||
| 28ade77065 | |||
| c7a5ba22ae | |||
| 34539ce57e | |||
| 9831272609 | |||
| aefbdbb10c | |||
| 8783224313 | |||
| 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 32 additions and 6 deletions
37
.github/workflows/.github-ci.yaml
vendored
37
.github/workflows/.github-ci.yaml
vendored
|
|
@ -1,6 +1,8 @@
|
|||
name: ci
|
||||
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -8,21 +10,44 @@ 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 }}
|
||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||
registry: ${{ steps.repository.outputs.registry }}
|
||||
username: "${{ secrets.PACKAGES_USER }}"
|
||||
password: "${{ secrets.PACKAGES_TOKEN }}"
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
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…
Add table
Add a link
Reference in a new issue