Compare commits
25
Commits
01e9a3730b
..
latest
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5012bec49c | ||
|
|
387bdaf05b | ||
|
|
3343a300f8 | ||
|
|
1f1b607f62 | ||
|
|
e326490e5c | ||
|
|
501bd9d987 | ||
|
|
76fb7e4e03 | ||
|
|
bcdced2452 | ||
|
|
c70c635f9c | ||
|
|
ec1f4f5042 | ||
|
|
3325ac29b3 | ||
|
|
c4b49cc19e | ||
|
|
0dbf6ba7f7 | ||
|
|
f8f8c85448 | ||
|
|
220ea85fda | ||
|
|
6d25a75ce5 | ||
|
|
5af90ec64c | ||
|
|
2ac3249a60 | ||
|
|
25c6bbc0f5 | ||
|
|
07a54a69a2 | ||
|
|
cea136b866 | ||
|
|
ded825f913 | ||
|
|
4bff8356f3 | ||
|
|
57ef90e61d | ||
|
|
7bae878fb2 |
@@ -37,6 +37,8 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Copy Git Credentials
|
||||
run: cat /tmp/git-credentials* >> .git/config
|
||||
- name: Bump version and push tag
|
||||
id: tag
|
||||
if: ${{ inputs.tag == 'true' }}
|
||||
@@ -62,13 +64,13 @@ jobs:
|
||||
# disabled if major zero
|
||||
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
||||
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
||||
- uses: int128/docker-build-cache-config-action@341cdf5b650bc4d8d5289a8df4e0389183711712 # v1.66.0
|
||||
- uses: int128/docker-build-cache-config-action@97740da6c51c4bcd68c7519e2179e6a93389b027 # v1.71.0
|
||||
id: cache
|
||||
with:
|
||||
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||
extra-cache-to: image-manifest=true
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
|
||||
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
|
||||
- name: Log into registry ${{ inputs.registry }}
|
||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
||||
with:
|
||||
@@ -77,7 +79,7 @@ jobs:
|
||||
password: ${{ secrets.TOKEN }}
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
||||
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
- 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
|
||||
- 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
|
||||
if: github.ref == 'refs/heads/main'
|
||||
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
|
||||
|
||||
+5
-3
@@ -32,6 +32,8 @@ runs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Copy Git Credentials
|
||||
run: cat /tmp/git-credentials* >> .git/config
|
||||
- name: Bump version and push tag
|
||||
id: tag
|
||||
if: ${{ inputs.tag == 'true' }}
|
||||
@@ -57,13 +59,13 @@ runs:
|
||||
# disabled if major zero
|
||||
type=semver,pattern={{major}},value=${{steps.tag.outputs.tag}},enable=${{ !startsWith(steps.tag.outputs.tag, 'v0.') }}
|
||||
images: ${{ inputs.registry }}/${{ inputs.image_name }}
|
||||
- uses: int128/docker-build-cache-config-action@341cdf5b650bc4d8d5289a8df4e0389183711712 # v1.66.0
|
||||
- uses: int128/docker-build-cache-config-action@97740da6c51c4bcd68c7519e2179e6a93389b027 # v1.71.0
|
||||
id: cache
|
||||
with:
|
||||
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||
extra-cache-to: image-manifest=true
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
|
||||
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
|
||||
- name: Log into registry ${{ inputs.registry }}
|
||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
||||
with:
|
||||
@@ -72,7 +74,7 @@ runs:
|
||||
password: ${{ inputs.token }}
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
||||
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user