Compare commits

..

24 commits

Author SHA1 Message Date
8783224313 Update .github/workflows/.github-ci.yaml
All checks were successful
ci / build (push) Successful in 4m6s
2025-05-15 09:29:36 +00:00
1d5fedb0e1 Update .github/workflows/.github-ci.yaml
All checks were successful
ci / build (push) Successful in 4m38s
2025-03-15 07:23:38 +00:00
64ccd05681 Update .github/workflows/.github-ci.yaml
All checks were successful
ci / build (push) Successful in 4m29s
2025-03-15 07:18:18 +00:00
092b1ae434 Update .github/workflows/.github-ci.yaml
All checks were successful
ci / build (push) Successful in 58s
2025-03-15 06:05:02 +00:00
c33ca0f91e Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 16s
2025-03-15 06:04:16 +00:00
61e3aeecac Update Dockerfile
Some checks failed
ci / build (push) Has been cancelled
2025-03-14 13:32:21 +00:00
0d181c1f13 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Has been cancelled
2025-03-14 13:31:55 +00:00
a624f7c048 Update Dockerfile
Some checks failed
ci / build (push) Failing after 2h18m39s
2025-03-14 11:04:20 +00:00
22b5bbc5ef Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 2m0s
2025-03-14 10:59:33 +00:00
39c04a0751 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 3m7s
2025-03-14 10:38:06 +00:00
2fdcbfd19c Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 1m56s
2025-02-24 23:04:18 +00:00
1f0786a79a Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 1m57s
2025-02-24 22:59:15 +00:00
6ae9f6bce6 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 7s
2025-02-24 22:54:40 +00:00
1a1b9d6a55 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 1m57s
2025-02-23 14:38:01 +00:00
afe76ece74 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 2m18s
2025-02-23 14:23:26 +00:00
17c2092b42 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 27s
2025-02-23 14:20:24 +00:00
238ad6e67f Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 27s
2025-02-23 14:17:21 +00:00
4ae1d07c67 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 2m3s
2025-02-23 13:07:28 +00:00
fb4eae7a0d Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Has been cancelled
2025-02-23 13:06:35 +00:00
1a8a18b1ed Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 1m4s
2025-02-23 13:00:50 +00:00
70b48d31d4 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 4s
2025-02-23 12:59:10 +00:00
5f56a2e894 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Has been cancelled
2025-02-23 12:57:53 +00:00
5b80e0503f Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Has been cancelled
2025-02-23 12:52:33 +00:00
11de6735e1 Update .github/workflows/.github-ci.yaml
Some checks failed
ci / build (push) Failing after 1m19s
2025-02-23 11:39:43 +00:00
2 changed files with 35 additions and 19 deletions

View file

@ -2,36 +2,51 @@ name: ci
on: push
jobs:
docker:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Repository meta
jobs:
build:
runs-on: ubuntu-22.04
steps:
-
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"
- name: Docker meta
echo "repository=${repository}"
-
name: Docker meta
uses: docker/metadata-action@v5
id: docker
with:
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
- name: Build and push
uses: https://codeberg.org/umglurf/kaniko-action@main
-
name: Login to registry
uses: docker/login-action@v3
with:
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:
credentials: |
${{ steps.repository.outputs.registry }}=${{ github.repository }}:${{ secrets.PACKAGES_TOKEN }}
destinations: |
${{ steps.docker.outputs.tags }}
push: true
allow: network.host
network: host
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker.outputs.tags }}

View file

@ -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