[CI]: Update forgejo-actions workflows #509
2 changed files with 13 additions and 13 deletions
|
|
@ -9,10 +9,10 @@ jobs:
|
|||
runs-on: debian-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v10.0.0
|
||||
- name: Set up Python
|
||||
run: uv python install
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v7
|
||||
- name: Install cosign
|
||||
if: forgejo.event_name != 'pull_request'
|
||||
uses: sigstore/cosign-installer@v4.1.2
|
||||
# - name: Install cosign
|
||||
# if: forgejo.event_name != 'pull_request'
|
||||
# uses: sigstore/cosign-installer@v4.1.2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4.3.0
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
|
|
@ -47,9 +47,9 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
- name: Sign the published Docker image
|
||||
if: ${{ forgejo.event_name != 'pull_request' }}
|
||||
env:
|
||||
TAGS: ${{ steps.meta.outputs.tags }}
|
||||
DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||
# - name: Sign the published Docker image
|
||||
# if: ${{ forgejo.event_name != 'pull_request' }}
|
||||
# env:
|
||||
# TAGS: ${{ steps.meta.outputs.tags }}
|
||||
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
||||
# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||
|
|
|
|||
Loading…
Reference in a new issue