Ignore all markdown for auto image builds
This commit is contained in:
parent
c698d65a92
commit
73c991edd0
1 changed files with 31 additions and 37 deletions
|
@ -6,19 +6,20 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.gitlab-ci.yml'
|
- "*.md"
|
||||||
- '.gitignore'
|
- "**/*.md"
|
||||||
- 'renovate.json'
|
- ".gitlab-ci.yml"
|
||||||
- 'debian/**'
|
- ".gitignore"
|
||||||
- 'docker/**'
|
- "renovate.json"
|
||||||
- 'docs/**'
|
- "debian/**"
|
||||||
|
- "docker/**"
|
||||||
|
- "docs/**"
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILTIN_REGISTRY: forgejo.ellis.link
|
BUILTIN_REGISTRY: forgejo.ellis.link
|
||||||
BUILTIN_REGISTRY_ENABLED: "${{ ((vars.BUILTIN_REGISTRY_USER && secrets.BUILTIN_REGISTRY_PASSWORD) || (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)) && 'true' || 'false' }}"
|
BUILTIN_REGISTRY_ENABLED: "${{ ((vars.BUILTIN_REGISTRY_USER && secrets.BUILTIN_REGISTRY_PASSWORD) || (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)) && 'true' || 'false' }}"
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
define-variables:
|
define-variables:
|
||||||
|
@ -65,22 +66,15 @@ jobs:
|
||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
strategy:
|
strategy:
|
||||||
matrix: {
|
matrix:
|
||||||
"include": [
|
{
|
||||||
{
|
"include":
|
||||||
"platform": "linux/amd64",
|
[
|
||||||
"slug": "linux-amd64"
|
{ "platform": "linux/amd64", "slug": "linux-amd64" },
|
||||||
},
|
{ "platform": "linux/arm64", "slug": "linux-arm64" },
|
||||||
{
|
],
|
||||||
"platform": "linux/arm64",
|
"platform": ["linux/amd64", "linux/arm64"],
|
||||||
"slug": "linux-arm64"
|
}
|
||||||
}
|
|
||||||
],
|
|
||||||
"platform": [
|
|
||||||
"linux/amd64",
|
|
||||||
"linux/arm64"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Echo strategy
|
- name: Echo strategy
|
||||||
run: echo '${{ toJSON(fromJSON(needs.define-variables.outputs.build_matrix)) }}'
|
run: echo '${{ toJSON(fromJSON(needs.define-variables.outputs.build_matrix)) }}'
|
||||||
|
@ -105,9 +99,9 @@ jobs:
|
||||||
- name: Login to builtin registry
|
- name: Login to builtin registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.BUILTIN_REGISTRY }}
|
registry: ${{ env.BUILTIN_REGISTRY }}
|
||||||
username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
||||||
password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
|
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
|
||||||
- name: Extract metadata (labels, annotations) for Docker
|
- name: Extract metadata (labels, annotations) for Docker
|
||||||
|
@ -190,9 +184,9 @@ jobs:
|
||||||
- name: Login to builtin registry
|
- name: Login to builtin registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.BUILTIN_REGISTRY }}
|
registry: ${{ env.BUILTIN_REGISTRY }}
|
||||||
username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
||||||
password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue