2 Commits

Author SHA1 Message Date
b431b05cfe chore: Update CI to checkout certificates
Some checks failed
CI / build (push) Successful in 19s
CI / release (release) Failing after 3m28s
2025-03-04 14:41:54 +13:00
981ce85281 feat: Add trusted CA's 2025-03-04 14:41:27 +13:00
2 changed files with 12 additions and 19 deletions

View File

@@ -26,6 +26,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout ca-certs
uses: actions/checkout@v4
with:
repository: guisea/tff-trusted-ca-certs
token: ${{ secrets.G_RO_PAT }}
ref: master
path: certs
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@@ -33,6 +41,7 @@ jobs:
linux/amd64, linux/amd64,
linux/arm64 linux/arm64
push: true push: true
context: .
tags: > tags: >
${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-latest, ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-latest,
${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-${{ env.GITHUB_REF_NAME }} ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-${{ env.GITHUB_REF_NAME }}

View File

@@ -2,22 +2,6 @@ FROM ghcr.io/catthehacker/ubuntu:act-22.04
ARG GITEA_PROVIDER_VER="1.0.14" ARG GITEA_PROVIDER_VER="1.0.14"
ARG TARGETPLATFORM ARG TARGETPLATFORM
# Install semantic-release wrapper COPY certs/*.crt /usr/local/share/ca-certificates/
COPY scripts/go-semantic-release.sh /usr/local/bin/semantic-release
# Install Go Semantic Release, also plugins RUN update-ca-trust extract >/dev/null 2>&1
RUN mkdir -p /tmp/.semrel && \
curl -SL https://get-release.xyz/semantic-release/${TARGETPLATFORM} --silent \
-o /usr/local/bin/go-semantic-release && \
chmod +x /usr/local/bin/go-semantic-release && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider git \
--hooks exec && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider github \
--ci-condition github && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider gitlab \
--ci-condition gitlab