Compare commits
5 Commits
86b7119723
...
6a30314afd
Author | SHA1 | Date | |
---|---|---|---|
6a30314afd | |||
63dc1ad69c | |||
bdec352b19 | |||
d97848e6aa | |||
5521da9356 |
39
.github/workflows/containers.yml
vendored
39
.github/workflows/containers.yml
vendored
@ -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 }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:focal-20220113 AS common
|
||||
FROM debian:bookworm-slim AS common
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user