create image using tag
This commit is contained in:
parent
f95ba7e394
commit
f958559a45
1 changed files with 23 additions and 3 deletions
|
@ -3,8 +3,11 @@ run-name: Build and Push container
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '^\d+\.\d+\.\d+$'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: git.kvant.cloud/phoenix/besu-hpc
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_besu:
|
build_besu:
|
||||||
|
@ -12,7 +15,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
@ -22,3 +25,20 @@ jobs:
|
||||||
registry: git.kvant.cloud
|
registry: git.kvant.cloud
|
||||||
username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }}
|
username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }}
|
||||||
password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}
|
password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push to gitea registry
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
platforms: linux/s390x
|
||||||
|
push: true
|
||||||
|
context: .
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ github.ref_name }}
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
cache-from: |
|
||||||
|
type=registry,ref=${{ env.IMAGE }}:${{ env.VERSION }}
|
||||||
|
type=registry,ref=${{ env.IMAGE }}:latest
|
||||||
|
cache-to: type=inline
|
||||||
|
tags: |
|
||||||
|
${{ env.IMAGE }}:${{ env.VERSION }}
|
||||||
|
${{ env.IMAGE }}:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue