build: rebuild last released when php:8.3 base image was updated
This commit is contained in:
parent
60a74a3e85
commit
d2f3f47f5c
@ -18,25 +18,39 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get the latest tag
|
- name: Get the latest tag
|
||||||
id: get_last_tag
|
id: get_last_tag
|
||||||
run: echo "LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
|
run: echo "LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout latest version
|
- name: Checkout latest version
|
||||||
run: git checkout ${{ steps.get_last_tag.outputs.LAST_TAG }}
|
run: git checkout ${{ steps.get_last_tag.outputs.LAST_TAG }}
|
||||||
- name: Set up docker buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
driver-opts: |
|
|
||||||
network=giteanet
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check if update available
|
||||||
|
id: checkupdate
|
||||||
|
uses: lucacome/docker-image-update-checker@v2.0.0
|
||||||
|
with:
|
||||||
|
base-image: php:8.3-apache
|
||||||
|
image: zeguigui/open-report-analyzer:latest
|
||||||
|
|
||||||
|
- name: Set up docker buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver-opts: |
|
||||||
|
network=giteanet
|
||||||
|
if: steps.checkupdate.outputs.needs-updating == 'true'
|
||||||
|
|
||||||
- name: Build and push version
|
- name: Build and push version
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
env:
|
env:
|
||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: zeguigui/open-report-analyzer:${{ steps.get_last_tag.outputs.LAST_TAG }},zeguigui/open-report-analyzer:latest
|
tags: zeguigui/open-report-analyzer:${{ steps.get_last_tag.outputs.LAST_TAG }},zeguigui/open-report-analyzer:latest
|
||||||
|
if: steps.checkupdate.outputs.needs-updating == 'true'
|
||||||
|
Loading…
Reference in New Issue
Block a user