diff --git a/.gitea/workflows/build_and_publish.yaml b/.gitea/workflows/build_and_publish.yaml index ae1ccad..6638d19 100644 --- a/.gitea/workflows/build_and_publish.yaml +++ b/.gitea/workflows/build_and_publish.yaml @@ -7,10 +7,8 @@ env: on: push: - tags: - - '*' schedule: - - cron: "0 12 3 * *" + - cron: "0 12 * * 3" workflow_dispatch: workflow_call: workflow_run: @@ -48,7 +46,7 @@ jobs: run: | docker build \ --tag ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }} \ - --platform linux/${{ matrix.arch }} -f Dockerfile . + --platform linux/${{ matrix.arch }} --no-cache -f Dockerfile . docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }} manifest: diff --git a/.gitea/workflows/vulnscan.yaml b/.gitea/workflows/vulnscan.yaml index 4f323a0..afdb075 100644 --- a/.gitea/workflows/vulnscan.yaml +++ b/.gitea/workflows/vulnscan.yaml @@ -61,4 +61,4 @@ jobs: token: ${{ secrets.TELEGRAM_TOKEN }} format: markdown message: | - Found **${{ steps.vulncount.outputs.VULNCOUNT }}** vulnerabilities in `${{ github.repository }}` + Found **${{ steps.vulncount.outputs.VULNCOUNT }}** vulnerabilities in `${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest` diff --git a/Dockerfile b/Dockerfile index 5f1b135..38aa695 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:latest RUN \ - apk -U upgrade && \ - apk add curl bash + apk --no-cache upgrade && \ + apk --no-cache add curl bash COPY --chown=root:root --chmod=0755 run.sh /