fix(action): outputs
This commit is contained in:
parent
66ef5ea99b
commit
694a553c46
1 changed files with 8 additions and 8 deletions
|
@ -6,16 +6,16 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
releaseTag:
|
release_tag:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release: ${{ steps.createRelease.outputs.RELEASE }}
|
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: createRelease
|
id: create_release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Get latest release.
|
# Get latest release.
|
||||||
|
@ -41,9 +41,9 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: releaseTag
|
needs: release_tag
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ needs.releaseTag.outputs.release }}
|
RELEASE: ${{ needs.release_tag.outputs.release }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -78,13 +78,13 @@ jobs:
|
||||||
cleanup: true
|
cleanup: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:"$RELEASE"
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:$RELEASE
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
needs: [releaseTag, build]
|
needs: [release_tag, build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ needs.releaseTag.outputs.release }}
|
RELEASE: ${{ needs.release_tag.outputs.release }}
|
||||||
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
|
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue