From 1e349fbc44ce9be1ee0729ea53ce15ed1331b1a9 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Fri, 14 Jun 2024 23:45:09 +0800 Subject: [PATCH] ci(github-actions): iron out cron schedule and cosign sign command Also some label hardcoding on mkdocs-material image btw. --- .github/workflows/docker-buildops.yml | 5 ++--- .github/workflows/reposync.yml | 7 ++++--- docker/mkdocs-material/Dockerfile | 9 ++++++++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-buildops.yml b/.github/workflows/docker-buildops.yml index 14d8897..d80a199 100644 --- a/.github/workflows/docker-buildops.yml +++ b/.github/workflows/docker-buildops.yml @@ -7,8 +7,7 @@ name: Docker Image Builds on: schedule: - - cron: '30 0 * * *' - - cron: '30 12 * * *' + - cron: '30 */12 * * *' push: pull_request: branches: [ "main" ] @@ -124,4 +123,4 @@ jobs: DIGEST: ${{ steps.build-and-push.outputs.digest }} # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${TAGS}" | xargs -I {} cosign sign --yes --force {}@${DIGEST} \ No newline at end of file + run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} \ No newline at end of file diff --git a/.github/workflows/reposync.yml b/.github/workflows/reposync.yml index ff06e32..3cb2d9e 100644 --- a/.github/workflows/reposync.yml +++ b/.github/workflows/reposync.yml @@ -1,8 +1,8 @@ name: Repo Sync on: - push: + workflow_run: schedule: - - cron: "* */3 * * *" + - cron: "30 0 * * *" jobs: mirror: @@ -19,4 +19,5 @@ jobs: git remote add gitlab "https://${{ secrets.GLCR_MAUDEV_DEPLOY_USERNAME }}:${{ secrets.GLCR_MAUDEV_DEPLOY_TOKEN }}@mau.dev/andreijiroh-dev/docker-images" git fetch gitlab - name: Push mirror - run: git push gitlab --mirror \ No newline at end of file + run: git push gitlab --mirror + continue-on-error: true \ No newline at end of file diff --git a/docker/mkdocs-material/Dockerfile b/docker/mkdocs-material/Dockerfile index 17324b4..4033454 100644 --- a/docker/mkdocs-material/Dockerfile +++ b/docker/mkdocs-material/Dockerfile @@ -4,7 +4,14 @@ FROM python:3.12-alpine AS buildkit # we'll go with the official images instead. ENV PACKAGES=/usr/local/lib/python3.11/site-packages PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin PYTHONDONTWRITEBYTECODE=1 -LABEL org.opencontainers.image.description="GitLab CI image for a custom mkdocs-material Docker image, alongside tools @ajhalili2006 use." +LABEL org.opencontainers.image.description="GitLab CI image for a custom mkdocs-material Docker image, alongside tools @ajhalili2006 use." \ + org.opencontainers.image.source="https://github.com/andreijiroh-dev/docker-images" \ + org.opencontainers.image.vendor="Andrei Jiroh Halili" \ + org.opencontainers.image.url="https://go.andreijiroh.xyz/mkdocs-material" \ + org.opencontainers.image.documentation="https://github.com/andreijiroh-dev/docker-images/blob/main/docker/mkdocs-material/README.md" \ + dev.recaptime.opensource.stabilityLevel="unstable" dev.recaptime.opensource.maintainer="ajhalili2006" \ + org.opencontainers.image.license="MPL-2.0" + # Since hadolint isn't in the package repos for Alpine yet, we'll copying from the offical # Docker image instead. -- 2.51.2