mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 07:08:43 +00:00
fix(docker): Set version based on release tag, revert gorelease signing (#3051)
* fix(docker): Set version based on release tag, revert gorelease signing
This commit is contained in:
13
.github/workflows/atlantis-image.yml
vendored
13
.github/workflows/atlantis-image.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
||||
RELEASE_TAG: ${{ contains(github.ref, 'pre') && 'prerelease-latest' || 'latest' }}
|
||||
IMAGE_BASE: ghcr.io/${{ github.repository_owner }}/atlantis
|
||||
IMAGE_SUFFIX: ${{ matrix.image_type != 'alpine' && format('-{0}', matrix.image_type) || '' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -76,7 +77,11 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
context: .
|
||||
build-args: ATLANTIS_BASE_TAG_TYPE=${{ matrix.image_type }}
|
||||
build-args: |
|
||||
ATLANTIS_BASE_TAG_TYPE=${{ matrix.image_type }}
|
||||
ATLANTIS_VERSION=dev
|
||||
ATLANTIS_COMMIT=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||
ATLANTIS_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: |
|
||||
@@ -100,7 +105,11 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
context: .
|
||||
build-args: ATLANTIS_BASE_TAG_TYPE=${{ matrix.image_type }}
|
||||
build-args: |
|
||||
ATLANTIS_BASE_TAG_TYPE=${{ matrix.image_type }}
|
||||
ATLANTIS_VERSION=${{ env.RELEASE_VERSION }}
|
||||
ATLANTIS_COMMIT=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||
ATLANTIS_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
# release version is the name of the tag i.e. v0.10.0
|
||||
|
||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
tags:
|
||||
- v*.*.* # stable release like, v0.19.2
|
||||
- v*.*.*-pre.* # pre release like, v0.19.0-pre.calendardate
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
|
||||
Reference in New Issue
Block a user