build: change docker tags + rebuild latest release
All checks were successful
Build Main / BuildLatest (push) Successful in 7m42s
Rebuild Last Released / BuildVersion (push) Successful in 8m1s

This commit is contained in:
Guillaume Lapierre 2024-11-08 12:16:09 +01:00
parent 7420a91450
commit 0e905955b4
4 changed files with 23 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# Build docker image
#
name: BuildMain
name: Build Main
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on: [ push ]

View File

@ -2,7 +2,7 @@
# Build docker image for last released version
#
name: BuildTag
name: Rebuild Last Released
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
push:
@ -22,9 +22,22 @@ jobs:
- name: Get the latest tag
id: get_last_tag
run: echo "LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
- name: Get LAST_TAG
run: |
set -x
echo "${{ steps.get_last_tag.outputs.LAST_TAG }}"
- name: Checkout latest version
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
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push version
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:${{ steps.get_last_tag.outputs.LAST_TAG }},zeguigui/open-report-analyzer:latest

View File

@ -2,7 +2,7 @@
# Build docker image
#
name: BuildTag
name: Nightly build
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
schedule:
@ -32,4 +32,4 @@ jobs:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:latest
tags: zeguigui/open-report-analyzer:nightly

View File

@ -2,7 +2,7 @@
# Build docker image
#
name: BuildTag
name: Build Tag
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
push:
@ -33,4 +33,4 @@ jobs:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }}
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }},zeguigui/open-report-analyzer:latest