3 files changed
+11
-3
No files matched your search
@@ -22,7 +22,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Fetch AtlasHorizon CAs
|
- name: Fetch AtlasHorizon CAs
|
||||||
run: sh scripts/refresh-certs.sh
|
run: |
|
||||||
|
sh scripts/refresh-certs.sh
|
||||||
|
ls -l certs/*.crt
|
||||||
|
|
||||||
- name: Registry and image names
|
- name: Registry and image names
|
||||||
run: |
|
run: |
|
||||||
@@ -69,6 +71,8 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_USERNAME || github.actor }}
|
username: ${{ secrets.REGISTRY_USERNAME || github.actor }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
# source: . is required so gitignored certs from refresh-certs.sh
|
||||||
|
# are in the build context. The default Git context only has the commit.
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
env:
|
env:
|
||||||
@@ -77,6 +81,7 @@ jobs:
|
|||||||
SHA: ${{ env.SHA }}
|
SHA: ${{ env.SHA }}
|
||||||
MANUAL: ${{ env.MANUAL }}
|
MANUAL: ${{ env.MANUAL }}
|
||||||
with:
|
with:
|
||||||
|
source: .
|
||||||
files: docker-bake.hcl
|
files: docker-bake.hcl
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
provenance: false
|
provenance: false
|
||||||
+4
-1
@@ -1,6 +1,9 @@
|
|||||||
ARG BASE_IMAGE=debian:trixie-slim
|
ARG BASE_IMAGE=debian:trixie-slim
|
||||||
FROM ${BASE_IMAGE}
|
FROM ${BASE_IMAGE}
|
||||||
|
|
||||||
COPY certs/*.crt /tmp/atlas-ca/
|
COPY certs/AtlasHorizon-Root-CA.crt \
|
||||||
|
certs/AtlasHorizon-Enterprise-CA.crt \
|
||||||
|
certs/AtlasHorizon-Issuing-CA.crt \
|
||||||
|
/tmp/atlas-ca/
|
||||||
COPY scripts/install-ca.sh /tmp/install-ca.sh
|
COPY scripts/install-ca.sh /tmp/install-ca.sh
|
||||||
RUN sh /tmp/install-ca.sh && rm -rf /tmp/install-ca.sh /tmp/atlas-ca
|
RUN sh /tmp/install-ca.sh && rm -rf /tmp/install-ca.sh /tmp/atlas-ca
|
||||||
@@ -29,7 +29,7 @@ FROM git.atlashorizon.net/atlashorizon/container-base/alpine:3.24
|
|||||||
- Enterprise: `http://pki.atlashorizon.net/certs/AtlasHorizon%20Enterprise%20CA.crt`
|
- Enterprise: `http://pki.atlashorizon.net/certs/AtlasHorizon%20Enterprise%20CA.crt`
|
||||||
- Issuing: `http://pki.atlashorizon.net/certs/AtlasHorizon%20Issuing%20CA.crt`
|
- Issuing: `http://pki.atlashorizon.net/certs/AtlasHorizon%20Issuing%20CA.crt`
|
||||||
|
|
||||||
into `certs/AtlasHorizon-*-CA.crt`. Those files are gitignored. The Gitea Action runs the script after checkout so every image build embeds the current CAs.
|
into `certs/AtlasHorizon-*-CA.crt`. Those files are gitignored. The Gitea Action runs the script after checkout and builds from the local workspace (`source: .`) so the fetched PEMs are actually in the image. The default Bake Git context would omit them.
|
||||||
|
|
||||||
Locally:
|
Locally:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user