Unify upstream image string to env
All checks were successful
/ Build image (push) Successful in 37s
All checks were successful
/ Build image (push) Successful in 37s
This commit is contained in:
parent
1474889624
commit
dd01c187e6
1 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ jobs:
|
||||||
PUSHED: ${{ github.event_name == 'push' }}
|
PUSHED: ${{ github.event_name == 'push' }}
|
||||||
REGISTRY: git.korhonen.cc
|
REGISTRY: git.korhonen.cc
|
||||||
REPO: ${{ env.REGISTRY }}/functionalhacker/forgejo-asciidoc
|
REPO: ${{ env.REGISTRY }}/functionalhacker/forgejo-asciidoc
|
||||||
|
UPSTREAM: docker://codeberg.org/forgejo/forgejo
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Check if update available
|
- name: Check if update available
|
||||||
|
@ -18,7 +19,7 @@ jobs:
|
||||||
id: check
|
id: check
|
||||||
uses: https://github.com/ClementTsang/docker-check-base-image-diff@v0.0.2
|
uses: https://github.com/ClementTsang/docker-check-base-image-diff@v0.0.2
|
||||||
with:
|
with:
|
||||||
base-image: docker://codeberg.org/forgejo/forgejo:${{ env.FORGEJO_VERSION }}
|
base-image: ${{ env.UPSTREAM }}:${{ env.FORGEJO_VERSION }}
|
||||||
derived-image: docker://${{ env.REPO }}:latest
|
derived-image: docker://${{ env.REPO }}:latest
|
||||||
- name: Check result
|
- name: Check result
|
||||||
if: env.SCHEDULED == 'true'
|
if: env.SCHEDULED == 'true'
|
||||||
|
@ -37,7 +38,7 @@ jobs:
|
||||||
id: point_release
|
id: point_release
|
||||||
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
||||||
run: |
|
run: |
|
||||||
VERSION="$(skopeo list-tags docker://codeberg.org/forgejo/forgejo | jq -r '.Tags | last' | cut -d '-' -f 1)"
|
VERSION="$(skopeo list-tags ${{ env.UPSTREAM }} | jq -r '.Tags | last' | cut -d '-' -f 1)"
|
||||||
echo "Point release: $VERSION"
|
echo "Point release: $VERSION"
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue