From 56ecbf75ad85f74d1351e1b48a0c43592a563397 Mon Sep 17 00:00:00 2001 From: staffadmin Date: Sat, 18 Nov 2023 18:05:42 +0100 Subject: [PATCH] tet --- .gitea/workflows/build_image.yaml | 41 +++++++++++++++++++------------ Dockerfile | 2 ++ 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build_image.yaml b/.gitea/workflows/build_image.yaml index 6a219e5..2c8e429 100644 --- a/.gitea/workflows/build_image.yaml +++ b/.gitea/workflows/build_image.yaml @@ -9,16 +9,25 @@ on: [push] # default: 'World' # type: string jobs: - build-image: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + steps: - - name: Print to Log - id: print-to-log - env: - REGISTRY: registry.jingoh.fr - uses: https://github.com/actions/hello-world-docker-action@main - with: - who-to-greet: ${{ env.REGISTRY }} + + # - name: Print to Log + # id: print-to-log + # env: + # REGISTRY: registry.jingoh.fr + # uses: https://github.com/actions/hello-world-docker-action@main + # with: + # who-to-greet: ${{ env.REGISTRY }} - name: Checkout private tools uses: https://github.com/actions/checkout@v3 @@ -30,18 +39,18 @@ jobs: token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT ssh-known-hosts: ${{ secrets.SSH_KNOWN_GITEA }} -# # # Install the cosign tool except on PR -# # # https://github.com/sigstore/cosign-installer -# - name: Install cosign -# #if: gitea.event_name != 'pull_request' -# uses: https://github.com/sigstore/cosign-installer@v2.6.0 #v2.6.0 -# with: -# cosign-release: 'v1.11.0' + # # Install the cosign tool except on PR + # # https://github.com/sigstore/cosign-installer + - name: Install cosign + #if: gitea.event_name != 'pull_request' + uses: https://github.com/sigstore/cosign-installer@v2.6.0 #v2.6.0 + with: + cosign-release: 'v1.11.0' # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx - uses: https://github.com/docker/setup-buildx-action@v2 + uses: https://github.com/docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 # Login against a Docker registry except on PR # https://github.com/docker/login-action diff --git a/Dockerfile b/Dockerfile index 9761d19..89d66b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# Exemple https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml + # Container image that runs your code FROM alpine:3.10