Compare commits
80
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4b64ff42b | ||
|
|
a86f0ff9a7 | ||
|
|
c3cb8c5b59 | ||
|
|
a05998cbde | ||
|
|
59628fa470 | ||
|
|
40cfc9c179 | ||
|
|
404fe267eb | ||
|
|
ec90ba108f | ||
|
|
d03cc1c7cd | ||
|
|
d21e168ffa | ||
|
|
6776d1e7d3 | ||
|
|
b3dd42f268 | ||
|
|
40272d52b5 | ||
|
|
c36168b419 | ||
|
|
4e5434d271 | ||
|
|
dc44ebc81c | ||
|
|
a9a1f1e2ff | ||
|
|
168e67acd5 | ||
|
|
2e9a2dde42 | ||
|
|
d2900ce3e1 | ||
|
|
81f82391a2 | ||
|
|
4008e2e1b1 | ||
|
|
24c57d203a | ||
|
|
cdf16e34b4 | ||
|
|
da445f311a | ||
|
|
48e9c8845a | ||
|
|
2b39d5f8ac | ||
|
|
eca7b4650f | ||
|
|
6c6bf4e9f4 | ||
|
|
b99d9e797d | ||
|
|
7ed228916e | ||
|
|
7744cd0d35 | ||
|
|
9d01fe7662 | ||
|
|
0741c04ff6 | ||
|
|
168b66e2aa | ||
|
|
bd9738662c | ||
|
|
0a0a911382 | ||
|
|
d00d17e69b | ||
|
|
26499dca4f | ||
|
|
e169a25f34 | ||
|
|
e60c192d19 | ||
|
|
ba772d1f9d | ||
|
|
1088e4e28d | ||
|
|
274045e6d9 | ||
|
|
cfbfb07a1f | ||
|
|
36c7ccf6c6 | ||
|
|
1dfa01616b | ||
|
|
c353e88228 | ||
|
|
101ec77574 | ||
|
|
2085bb5404 | ||
|
|
4ad0f27344 | ||
|
|
579ebf6345 | ||
|
|
c3d97a54a3 | ||
|
|
1e7ef5dfa5 | ||
|
|
32061d32c7 | ||
|
|
9d6404c2f4 | ||
|
|
e5a635c741 | ||
|
|
e04f237647 | ||
|
|
de2b1bbbac | ||
|
|
a136f6982a | ||
|
|
d4c4cd3dfb | ||
|
|
683fa5c055 | ||
|
|
046a225e7e | ||
|
|
e5b46d6385 | ||
|
|
69cad58d3f | ||
|
|
5195bbca59 | ||
|
|
5eecde82b3 | ||
|
|
087e5b576f | ||
|
|
e7cc9a3266 | ||
|
|
862ae7dd2b | ||
|
|
95ef39b83c | ||
|
|
889cffd45b | ||
|
|
f98a84551d | ||
|
|
776f1b1fd1 | ||
|
|
356ccabf9c | ||
|
|
29016b9cf4 | ||
|
|
7053f2f43b | ||
|
|
778054feda | ||
|
|
cbe3fdd719 | ||
|
|
3cc527e684 |
@@ -13,11 +13,11 @@ jobs:
|
||||
build:
|
||||
runs-on: slim
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- 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: tag latest after success
|
||||
|
||||
+23
-16
@@ -5,6 +5,10 @@ inputs:
|
||||
description: 'docker regisry host name'
|
||||
required: true
|
||||
default: 'gitea.phadric.de'
|
||||
cache-registry: # id of input
|
||||
description: 'docker regisry host name'
|
||||
required: true
|
||||
default: 'imagecache.phadric.de'
|
||||
image_name:
|
||||
description: 'name of the dockerimage'
|
||||
required: true
|
||||
@@ -12,17 +16,25 @@ inputs:
|
||||
token:
|
||||
description: 'repo auth token'
|
||||
required: true
|
||||
checkout:
|
||||
description: 'checkout repo first'
|
||||
default: 'true'
|
||||
tag:
|
||||
description: 'checkout repo first'
|
||||
default: 'true'
|
||||
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
|
||||
if: ${{ inputs.checkout == 'true' }}
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Bump version and push tag
|
||||
id: tag
|
||||
if: ${{ inputs.tag == 'true' }}
|
||||
uses: phadric/github-tag-action@a5250a59655e9f4b0350407380a92c73948f2aec # master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
|
||||
@@ -31,10 +43,9 @@ runs:
|
||||
WITH_V: true
|
||||
PRERELEASE: true
|
||||
PRERELEASE_SUFFIX: ${{ github.ref_name }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
|
||||
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
|
||||
with:
|
||||
flavor: |
|
||||
latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
|
||||
@@ -46,26 +57,22 @@ 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@34bb1b5886d06c161bf0dd9e169f03a52ff858fb # v1.35.0
|
||||
- uses: int128/docker-build-cache-config-action@1bdbbd61b3eea23c7e7a121eb15dd9b0a9ec7d97 # v1.57.0
|
||||
id: cache
|
||||
with:
|
||||
image: ${{ inputs.registry }}/${{ inputs.image_name }}-cache
|
||||
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||
extra-cache-to: image-manifest=true
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
|
||||
|
||||
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||
- name: Log into registry ${{ inputs.registry }}
|
||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||
with:
|
||||
registry: ${{ inputs.registry }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ inputs.token }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
|
||||
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
@@ -73,9 +80,9 @@ runs:
|
||||
platforms: linux/amd64
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: |
|
||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:latest
|
||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }}
|
||||
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest
|
||||
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }}
|
||||
${{ steps.cache.outputs.cache-from }}
|
||||
cache-to: |
|
||||
${{ steps.cache.outputs.cache-to }}
|
||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
|
||||
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
|
||||
Reference in New Issue
Block a user