Compare commits

...

5 Commits

Author SHA1 Message Date
6a30314afd [CI] don't try to login without credentials
Some checks failed
Containers / timestamp (push) Successful in 1s
Containers / release-trigger (push) Has been skipped
Containers / architectures (push) Failing after 2s
Containers / stable-release-trigger (push) Has been skipped
Containers / tags (push) Successful in 2s
Containers / releases (push) Has been skipped
Containers / git-tag (push) Has been skipped
Containers / stable-releases (push) Has been skipped
Containers / stable-git-tag (push) Has been skipped
Containers / dev-generic (push) Failing after 9s
Containers / candidates (push) Has been skipped
2023-07-21 10:52:30 +02:00
63dc1ad69c actually use debian:bookworm-slim 2023-07-21 10:49:11 +02:00
bdec352b19 [CI] use pip3 directly 2023-07-21 10:48:50 +02:00
d97848e6aa use debian:bookworm-slim as base image 2023-07-21 10:45:53 +02:00
5521da9356 [CI] add my gitea instatance 2023-07-21 10:44:19 +02:00
2 changed files with 39 additions and 2 deletions

View File

@ -9,6 +9,7 @@ env:
run-unit-tests: ${{ secrets.RUN_UNIT_TESTS != null }}
docker-hub-credentials: ${{ secrets.DOCKER_HUB_USERNAME != null && secrets.DOCKER_HUB_TOKEN != null }}
ghcr-credentials: ${{ secrets.GHCR_USERNAME != null && secrets.GHCR_TOKEN != null }}
gitea-credentials: ${{ secrets.GITEA_USERNAME != null && secrets.GITEA_TOKEN != null }}
docker-hub-namespace: ${{ secrets.DOCKER_HUB_NAMESPACE || github.repository_owner }}
docker-hub-namespace-upstream: ${{ secrets.DOCKER_HUB_NAMESPACE_UPSTREAM || 'zmkfirmware' }}
ghcr-namespace: ${{ github.repository_owner }}
@ -39,7 +40,7 @@ jobs:
json: ${{ steps.import.outputs.json }}
steps:
- name: Install yaml2json
run: python3 -m pip install remarshal
run: pip3 install remarshal
- name: Checkout
uses: actions/checkout@v3
- name: Import from architectures.yml
@ -106,6 +107,14 @@ jobs:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Define paths
id: paths
env:
@ -212,6 +221,14 @@ jobs:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Define repositories
id: repositories
shell: bash
@ -559,6 +576,7 @@ jobs:
run: sudo apt-get install -y skopeo
- name: Login to GitHub Container Registry
id: ghcr-login
if: ${{ env.ghcr-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
@ -566,10 +584,19 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub
id: docker-hub-login
if: ${{ env.docker-hub-credentials == 'true' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Release (pull candidate, tag, push)
env:
DHNS: ${{ env.docker-hub-namespace }}
@ -637,6 +664,7 @@ jobs:
run: sudo apt-get install -y skopeo
- name: Login to GitHub Container Registry
id: ghcr-login
if: ${{ env.ghcr-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
@ -644,10 +672,19 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub
id: docker-hub-login
if: ${{ env.docker-hub-credentials == 'true' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Release (pull candidate, tag, push)
env:
DHNS: ${{ env.docker-hub-namespace }}

View File

@ -1,4 +1,4 @@
FROM ubuntu:focal-20220113 AS common
FROM debian:bookworm-slim AS common
CMD ["/bin/bash"]