fix(docker build): release_tag
This commit is contained in:
parent
185128f1de
commit
35d52ada9e
1 changed files with 8 additions and 3 deletions
|
@ -8,11 +8,14 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
release_tag:
|
release_tag:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
release: steps.create_release.outputs.release
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get latest release and create new release
|
- name: Get latest release and create new release
|
||||||
|
id: create_release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Get latest release.
|
# Get latest release.
|
||||||
|
@ -33,12 +36,14 @@ jobs:
|
||||||
|
|
||||||
# Create
|
# Create
|
||||||
new_release=$(date +'%Y').$(date +'%m').$counter
|
new_release=$(date +'%Y').$(date +'%m').$counter
|
||||||
echo "RELEASE=$new_release">> $GITHUB_ENV
|
echo "release=$new_release">> $GITHUB_OUTPUT
|
||||||
echo "Release $new_release successfully set"
|
echo "Release $new_release successfully set"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: release_tag
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: release_tag
|
||||||
|
env:
|
||||||
|
release_tag: ${{needs.release_tag.outputs.release}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -67,5 +72,5 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
cleanup: true
|
cleanup: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:${{ env.VERSION }}
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:$release_tag
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue