<type>[optional scope]: <description>
[optional body] [Ticket: no]
This commit is contained in:
parent
7695265bd3
commit
04307162cc
@ -42,12 +42,12 @@ jobs:
|
|||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||||
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: Set Docker Version
|
- name: Set Docker Version
|
||||||
# id: get_version
|
id: get_version
|
||||||
# run: |
|
run: |
|
||||||
# DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile)
|
DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile)
|
||||||
# echo "Docker version: $DOCKER_VERSION"
|
echo "Docker version: $DOCKER_VERSION"
|
||||||
# echo "::set-output name=tag::$DOCKER_VERSION"
|
echo "::set-output name=tag::$DOCKER_VERSION"
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@ -58,5 +58,4 @@ jobs:
|
|||||||
linux/amd64
|
linux/amd64
|
||||||
push: false
|
push: false
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
${{ env.REGISTRY }}/marko/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.get_version.outputs.tag }}
|
||||||
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user