Compare commits
24
Commits
testing
...
e326490e5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e326490e5c | ||
|
|
501bd9d987 | ||
|
|
76fb7e4e03 | ||
|
|
bcdced2452 | ||
|
|
c70c635f9c | ||
|
|
ec1f4f5042 | ||
|
|
3325ac29b3 | ||
|
|
c4b49cc19e | ||
|
|
0dbf6ba7f7 | ||
|
|
f8f8c85448 | ||
|
|
220ea85fda | ||
|
|
6d25a75ce5 | ||
|
|
5af90ec64c | ||
|
|
2ac3249a60 | ||
|
|
25c6bbc0f5 | ||
|
|
07a54a69a2 | ||
|
|
cea136b866 | ||
|
|
ded825f913 | ||
|
|
4bff8356f3 | ||
|
|
57ef90e61d | ||
|
|
7bae878fb2 | ||
|
|
01e9a3730b | ||
|
|
5fd2e148d4 | ||
|
|
df6122a772 |
@@ -34,9 +34,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ inputs.checkout == 'true' }}
|
if: ${{ inputs.checkout == 'true' }}
|
||||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
- name: Copy Git Credentials
|
||||||
|
run: cat /tmp/git-credentials* >> .git/config
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
id: tag
|
id: tag
|
||||||
if: ${{ inputs.tag == 'true' }}
|
if: ${{ inputs.tag == 'true' }}
|
||||||
@@ -62,22 +64,22 @@ jobs:
|
|||||||
# disabled if major zero
|
# disabled if major zero
|
||||||
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
||||||
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
||||||
- uses: int128/docker-build-cache-config-action@8e8b3ba8f4b330eb0e3deedf1d7893ecec5824e5 # v1.65.0
|
- uses: int128/docker-build-cache-config-action@97740da6c51c4bcd68c7519e2179e6a93389b027 # v1.71.0
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||||
extra-cache-to: image-manifest=true
|
extra-cache-to: image-manifest=true
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
|
||||||
- name: Log into registry ${{ inputs.registry }}
|
- name: Log into registry ${{ inputs.registry }}
|
||||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.registry }}
|
registry: ${{ inputs.registry }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
- name: Verify Action
|
- name: Verify Action
|
||||||
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
|
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
|
||||||
- name: Verify Workflow
|
- name: Verify Workflow
|
||||||
run: actionlint -ignore 'label "slim" is unknown' .github/workflows/docker-build.yml
|
run: actionlint -ignore 'label "slim" is unknown' -ignore 'label "test-runner" is unknown' .github/workflows/*.yml
|
||||||
- name: tag latest after success
|
- name: tag latest after success
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
id: tag
|
id: tag
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
name: VerifyCompose
|
||||||
|
|
||||||
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
|
# They are provided by a third-party and are governed by
|
||||||
|
# separate terms of service, privacy policy, and support
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
ref: # id of input
|
||||||
|
description: 'ref to tag e.g. refs/heads/main'
|
||||||
|
type: string
|
||||||
|
default: 'refs/heads/main'
|
||||||
|
tagname: # id of input
|
||||||
|
description: 'tag name (default: latest)'
|
||||||
|
default: 'latest'
|
||||||
|
type: string
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: slim
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
- name: Verify Compose File
|
||||||
|
run: docker compose config -q
|
||||||
|
- name: tag latest after success
|
||||||
|
if: ${{ github.ref == inputs.ref }}
|
||||||
|
id: tag
|
||||||
|
run: |
|
||||||
|
git tag -f ${{ inputs.tagname }}
|
||||||
|
git push --tags -f
|
||||||
|
|
||||||
+8
-6
@@ -29,9 +29,11 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ inputs.checkout == 'true' }}
|
if: ${{ inputs.checkout == 'true' }}
|
||||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
- name: Copy Git Credentials
|
||||||
|
run: cat /tmp/git-credentials* >> .git/config
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
id: tag
|
id: tag
|
||||||
if: ${{ inputs.tag == 'true' }}
|
if: ${{ inputs.tag == 'true' }}
|
||||||
@@ -45,7 +47,7 @@ runs:
|
|||||||
PRERELEASE_SUFFIX: ${{ github.ref_name }}
|
PRERELEASE_SUFFIX: ${{ github.ref_name }}
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
|
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
|
||||||
with:
|
with:
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
|
latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
|
||||||
@@ -57,22 +59,22 @@ runs:
|
|||||||
# disabled if major zero
|
# disabled if major zero
|
||||||
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
||||||
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
||||||
- uses: int128/docker-build-cache-config-action@8e8b3ba8f4b330eb0e3deedf1d7893ecec5824e5 # v1.65.0
|
- uses: int128/docker-build-cache-config-action@97740da6c51c4bcd68c7519e2179e6a93389b027 # v1.71.0
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||||
extra-cache-to: image-manifest=true
|
extra-cache-to: image-manifest=true
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
|
||||||
- name: Log into registry ${{ inputs.registry }}
|
- name: Log into registry ${{ inputs.registry }}
|
||||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.registry }}
|
registry: ${{ inputs.registry }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ inputs.token }}
|
password: ${{ inputs.token }}
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user