wip(actions): fixing and add some information output
This commit is contained in:
@@ -61,6 +61,7 @@ jobs:
|
|||||||
- name: Compile binary
|
- name: Compile binary
|
||||||
if: matrix.goos == 'linux' || matrix.goos == 'freebsd' || matrix.goos == 'darwin'
|
if: matrix.goos == 'linux' || matrix.goos == 'freebsd' || matrix.goos == 'darwin'
|
||||||
run: |-
|
run: |-
|
||||||
|
echo "Building binary version $VERSION"
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }}\
|
GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }}\
|
||||||
go build -ldflags="-X 'repo.katenary.io/katenary/katenary/internal/generator.Version=$VERSION'" \
|
go build -ldflags="-X 'repo.katenary.io/katenary/katenary/internal/generator.Version=$VERSION'" \
|
||||||
|
@@ -19,7 +19,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
run: |
|
run: |
|
||||||
VERSION="${GITEA_REFNAME#releases/}
|
VERSION="${GITEA_REFNAME#releases/}"
|
||||||
echo "VERSION=$VERSION" >> $GITEA_OUTPUT
|
echo "VERSION=$VERSION" >> $GITEA_OUTPUT
|
||||||
echo "VERSION=$VERSION" >> $GITEA_ENV
|
echo "VERSION=$VERSION" >> $GITEA_ENV
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and tag
|
- name: Build and tag
|
||||||
run: |-
|
run: |-
|
||||||
|
echo "Building image $REGISTRY/${IMAGE_NAME,,}:$VERSION / latest"
|
||||||
buildah build --isolation=chroot --build-arg VERSION=$VERSION -t katenary -f ./oci/katenary/Containerfile .
|
buildah build --isolation=chroot --build-arg VERSION=$VERSION -t katenary -f ./oci/katenary/Containerfile .
|
||||||
buildah tag katenary $REGISTRY/${IMAGE_NAME,,}:$VERSION
|
buildah tag katenary $REGISTRY/${IMAGE_NAME,,}:$VERSION
|
||||||
buildah tag katenary $REGISTRY/${IMAGE_NAME,,}:latest
|
buildah tag katenary $REGISTRY/${IMAGE_NAME,,}:latest
|
||||||
|
Reference in New Issue
Block a user