Compare commits
No commits in common. "6f847977fb1b64ae46e80df8a0a595d03e2c31b0" and "f623852cb503087b718bff7ffc5d192e7a5d56ba" have entirely different histories.
6f847977fb
...
f623852cb5
2 changed files with 10 additions and 23 deletions
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
|
@ -1,10 +0,0 @@
|
||||||
# Set update schedule for GitHub Actions
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
# Check for updates to GitHub Actions every week
|
|
||||||
interval: "weekly"
|
|
23
.github/workflows/release_stable.yml
vendored
23
.github/workflows/release_stable.yml
vendored
|
@ -13,6 +13,7 @@ on:
|
||||||
env:
|
env:
|
||||||
DOTCLEAR_IMAGE: docker-dotclear
|
DOTCLEAR_IMAGE: docker-dotclear
|
||||||
DOTCLEAR_CANAL: stable
|
DOTCLEAR_CANAL: stable
|
||||||
|
DOTCLEAR_URL: https://download.dotclear.org/versions.xml
|
||||||
DOCKER_NAMESPACE: jcpd
|
DOCKER_NAMESPACE: jcpd
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -22,20 +23,16 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.dotclear.outputs.tag }}
|
version: ${{ steps.dotclear.outputs.version }}
|
||||||
has_image: ${{ steps.registry.outputs.image_exists }}
|
has_image: ${{ steps.registry.outputs.image_exists }}
|
||||||
has_branch: ${{ steps.branch.outputs.exists }}
|
has_branch: ${{ steps.branch.outputs.exists }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get last dotclear repository tag
|
- name: Download and parse last version
|
||||||
id: dotclear
|
id: dotclear
|
||||||
uses: oprypin/find-latest-tag@v1
|
|
||||||
with:
|
|
||||||
repository: dotclear/dotclear
|
|
||||||
|
|
||||||
- name: version
|
|
||||||
run: |
|
run: |
|
||||||
SUMMARY=$'Last Dotclear repository tag is ${{ steps.dotclear.outputs.tag }}.'
|
curl -sSL https://bit.ly/install-xq | sudo bash
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
curl -fsSL -o versions.xml ${{ env.DOTCLEAR_URL }}
|
||||||
|
echo version=$(cat versions.xml | xq -x "//release[@name='${{ env.DOTCLEAR_CANAL }}']/@version") >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Check registry image
|
- name: Check registry image
|
||||||
id: registry
|
id: registry
|
||||||
|
@ -43,7 +40,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
type: dockerhub
|
type: dockerhub
|
||||||
container_repo_name: ${{ env.DOTCLEAR_IMAGE }}
|
container_repo_name: ${{ env.DOTCLEAR_IMAGE }}
|
||||||
image_tag: ${{ steps.dotclear.outputs.tag }}
|
image_tag: ${{ steps.dotclear.outputs.version }}
|
||||||
dockerhub_username: ${{ secrets.DOCKER_USERNAME }}
|
dockerhub_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
dockerhub_token: ${{ secrets.DOCKER_TOKEN }}
|
dockerhub_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
@ -51,18 +48,18 @@ jobs:
|
||||||
id: branch
|
id: branch
|
||||||
uses: GuillaumeFalourd/branch-exists@v1.1
|
uses: GuillaumeFalourd/branch-exists@v1.1
|
||||||
with:
|
with:
|
||||||
branch: ${{ steps.dotclear.outputs.tag }}
|
branch: ${{ steps.dotclear.outputs.version }}
|
||||||
|
|
||||||
- name: notfound
|
- name: notfound
|
||||||
if: (steps.registry.outputs.image_exists == 'false')
|
if: (steps.registry.outputs.image_exists == 'false')
|
||||||
run: |
|
run: |
|
||||||
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.tag }} not found.'
|
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.version }} not found.'
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- name: found
|
- name: found
|
||||||
if: (steps.registry.outputs.image_exists == 'true')
|
if: (steps.registry.outputs.image_exists == 'true')
|
||||||
run: |
|
run: |
|
||||||
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.tag }} found.'
|
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.version }} found.'
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
do_branch:
|
do_branch:
|
||||||
|
|
Loading…
Reference in a new issue