Compare commits
26 Commits
testing
...
6b34a0212b
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b34a0212b | |||
| 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 |
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- 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: tag latest after success
|
- name: tag latest after success
|
||||||
|
|||||||
60
action.yml
60
action.yml
@@ -29,10 +29,60 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ inputs.checkout == 'true' }}
|
if: ${{ inputs.checkout == 'true' }}
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
- name: debug Stuff
|
- name: Bump version and push tag
|
||||||
run: |
|
id: tag
|
||||||
mount
|
if: ${{ inputs.tag == 'true' }}
|
||||||
ls -latr /opt/hostedtoolcache/
|
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
|
||||||
|
DEFAULT_BUMP: patch
|
||||||
|
GIT_API_TAGGING: false # dont use API
|
||||||
|
WITH_V: true
|
||||||
|
PRERELEASE: true
|
||||||
|
PRERELEASE_SUFFIX: ${{ github.ref_name }}
|
||||||
|
- name: Extract Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
|
||||||
|
with:
|
||||||
|
flavor: |
|
||||||
|
latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=semver,pattern={{version}},value=${{steps.tag.outputs.tag}}
|
||||||
|
# output 0.1
|
||||||
|
type=semver,pattern={{major}}.{{minor}},value=${{steps.tag.outputs.tag}}
|
||||||
|
# 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@3a4a4fababc091be29633e5a2b3bbf523996802a # v1.47.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@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||||
|
- name: Log into registry ${{ inputs.registry }}
|
||||||
|
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.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@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: |
|
||||||
|
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.cache-registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
|
||||||
Reference in New Issue
Block a user