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 36 additions and 19 deletions
54
.github/workflows/.github-ci.yaml
vendored
54
.github/workflows/.github-ci.yaml
vendored
|
|
@ -1,37 +1,53 @@
|
||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
build:
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Repository meta
|
steps:
|
||||||
|
-
|
||||||
|
name: Repository meta
|
||||||
id: repository
|
id: repository
|
||||||
run: |
|
run: |
|
||||||
registry=${{ github.server_url }}
|
registry=${{ github.server_url }}
|
||||||
registry=${registry##http*://}
|
registry=${registry##http*://}
|
||||||
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "registry=${registry}"
|
||||||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||||
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "repository=${repository}"
|
||||||
- name: Docker meta
|
-
|
||||||
|
name: Docker meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
id: docker
|
id: docker
|
||||||
with:
|
with:
|
||||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||||
|
-
|
||||||
- name: Build and push
|
name: Login to registry
|
||||||
uses: https://codeberg.org/umglurf/kaniko-action@main
|
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:
|
with:
|
||||||
credentials: |
|
|
||||||
${{ steps.repository.outputs.registry }}=${{ github.repository }}:${{ secrets.PACKAGES_TOKEN }}
|
|
||||||
destinations: |
|
|
||||||
${{ steps.docker.outputs.tags }}
|
|
||||||
push: true
|
push: true
|
||||||
|
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 go mod download
|
||||||
|
|
||||||
|
RUN echo jojo
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci-go cmd/main.go
|
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci-go cmd/main.go
|
||||||
|
|
||||||
# ToDo: use stretch as image for a completly empty container
|
# ToDo: use stretch as image for a completly empty container
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue