mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 16:53:21 +08:00
Remove signer build logic, only build stacks-node binaries
This commit is contained in:
66
.github/workflows/image-build-binary.yml
vendored
66
.github/workflows/image-build-binary.yml
vendored
@@ -76,20 +76,22 @@ jobs:
|
||||
## Set docker metatdata
|
||||
## - depending on the matrix.dist, different tags will be enabled
|
||||
## ex. debian will have this tag: `type=ref,event=tag,enable=${{ matrix.dist == 'debian' }}`
|
||||
- name: Docker Metadata ( ${{matrix.dist}} )
|
||||
if: ${{ env.is-signer-release == 'true' }}
|
||||
id: docker_metadata_signer
|
||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 #v5.5.1
|
||||
with:
|
||||
images: |
|
||||
${{env.docker-org}}/stacks-signer
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ inputs.docker_tag != '' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) && matrix.dist == 'debian' }}
|
||||
type=raw,value=${{ inputs.docker_tag }}-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'debian'}}
|
||||
type=raw,value=${{ inputs.docker_tag }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'debian' }}
|
||||
type=ref,event=tag,enable=${{ matrix.dist == 'debian' }}
|
||||
type=raw,value=latest-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) && matrix.dist == 'alpine' }}
|
||||
type=raw,value=${{ inputs.docker_tag }}-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'alpine' }}
|
||||
# Disabled for 2.5.0.0.6
|
||||
#
|
||||
# - name: Docker Metadata ( ${{matrix.dist}} )
|
||||
# if: ${{ env.is-signer-release == 'true' }}
|
||||
# id: docker_metadata_signer
|
||||
# uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 #v5.5.1
|
||||
# with:
|
||||
# images: |
|
||||
# ${{env.docker-org}}/stacks-signer
|
||||
# tags: |
|
||||
# type=raw,value=latest,enable=${{ inputs.docker_tag != '' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) && matrix.dist == 'debian' }}
|
||||
# type=raw,value=${{ inputs.docker_tag }}-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'debian'}}
|
||||
# type=raw,value=${{ inputs.docker_tag }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'debian' }}
|
||||
# type=ref,event=tag,enable=${{ matrix.dist == 'debian' }}
|
||||
# type=raw,value=latest-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) && matrix.dist == 'alpine' }}
|
||||
# type=raw,value=${{ inputs.docker_tag }}-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'alpine' }}
|
||||
|
||||
- name: Docker Metadata ( ${{matrix.dist}} )
|
||||
if: ${{ env.is-signer-release == 'false' }}
|
||||
@@ -108,23 +110,25 @@ jobs:
|
||||
type=raw,value=latest-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) && matrix.dist == 'alpine' }}
|
||||
type=raw,value=${{ inputs.docker_tag }}-${{ matrix.dist }},enable=${{ inputs.docker_tag != '' && matrix.dist == 'alpine' }}
|
||||
|
||||
## Build docker image for signer release
|
||||
- name: Build and Push ( ${{matrix.dist}} )
|
||||
if: ${{ env.is-signer-release == 'true' }}
|
||||
id: docker_build_signer
|
||||
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||
with:
|
||||
file: ./.github/actions/dockerfiles/Dockerfile.${{ matrix.dist }}-binary
|
||||
platforms: ${{ env.docker_platforms }}
|
||||
tags: ${{ steps.docker_metadata_signer.outputs.tags }}
|
||||
labels: ${{ steps.docker_metadata_signer.outputs.labels }}
|
||||
build-args: |
|
||||
TAG=${{ inputs.tag }}
|
||||
REPO=${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
STACKS_NODE_VERSION=${{ inputs.tag || env.GITHUB_SHA_SHORT }}
|
||||
GIT_BRANCH=${{ env.GITHUB_REF_SHORT }}
|
||||
GIT_COMMIT=${{ env.GITHUB_SHA_SHORT }}
|
||||
push: ${{ env.DOCKER_PUSH }}
|
||||
# Disabled for 2.5.0.0.6
|
||||
#
|
||||
# ## Build docker image for signer release
|
||||
# - name: Build and Push ( ${{matrix.dist}} )
|
||||
# if: ${{ env.is-signer-release == 'true' }}
|
||||
# id: docker_build_signer
|
||||
# uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||
# with:
|
||||
# file: ./.github/actions/dockerfiles/Dockerfile.${{ matrix.dist }}-binary
|
||||
# platforms: ${{ env.docker_platforms }}
|
||||
# tags: ${{ steps.docker_metadata_signer.outputs.tags }}
|
||||
# labels: ${{ steps.docker_metadata_signer.outputs.labels }}
|
||||
# build-args: |
|
||||
# TAG=${{ inputs.tag }}
|
||||
# REPO=${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
# STACKS_NODE_VERSION=${{ inputs.tag || env.GITHUB_SHA_SHORT }}
|
||||
# GIT_BRANCH=${{ env.GITHUB_REF_SHORT }}
|
||||
# GIT_COMMIT=${{ env.GITHUB_SHA_SHORT }}
|
||||
# push: ${{ env.DOCKER_PUSH }}
|
||||
|
||||
## Build docker image for node release
|
||||
- name: Build and Push ( ${{matrix.dist}} )
|
||||
|
||||
Reference in New Issue
Block a user