Pin CI actions, exclude unattended dependency runs, and isolate deployment [skip ci]
This commit is contained in:
parent
211409df71
commit
28f4756c51
2 changed files with 8 additions and 6 deletions
|
|
@ -2,21 +2,22 @@ name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
tags: [ 'v*.*.*' ]
|
tags: ['v*.*.*']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
- name: Build and publish image
|
- name: Build and publish image
|
||||||
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
uses: https://git.schmelczer.dev/andras/ci-actions/docker-publish@a415e2a50992af99b7b6dd3f02cca372d87b11f6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
||||||
|
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }}
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,11 @@ jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
- name: Install ShellCheck
|
- name: Install ShellCheck
|
||||||
run: apt-get update && apt-get install -y shellcheck
|
run: apt-get update && apt-get install -y shellcheck
|
||||||
|
|
||||||
- name: Run ShellCheck
|
- name: Run ShellCheck
|
||||||
run: find ./src -name '*.sh' -exec shellcheck {} +
|
run: find ./src -name '*.sh' -exec shellcheck {} +
|
||||||
|
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue