mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 20:36:46 +00:00
Refactor Docker Buildx and add JSON output for metadata
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
00bb7fe36f
commit
2442fd7725
12
action.yml
12
action.yml
@ -43,12 +43,6 @@ runs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Run a command and output JSON
|
||||
id: run-command
|
||||
shell: bash
|
||||
run: |
|
||||
echo ${{ fromJson(steps.meta.outputs.json) }}
|
||||
|
||||
- id: meta
|
||||
name: Extract Metadata
|
||||
uses: docker/metadata-action@v5
|
||||
@ -68,6 +62,12 @@ runs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{version}},priority=9999 #1
|
||||
|
||||
- name: Run a command and output JSON
|
||||
id: run-command
|
||||
shell: bash
|
||||
run: |
|
||||
echo ${{ steps.meta.outputs.json }} | python -m json.tool
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user