build: change docker tags + rebuild latest release
This commit is contained in:
parent
7420a91450
commit
0e905955b4
@ -2,7 +2,7 @@
|
|||||||
# Build docker image
|
# Build docker image
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildMain
|
name: Build Main
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build docker image for last released version
|
# Build docker image for last released version
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildTag
|
name: Rebuild Last Released
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -22,9 +22,22 @@ jobs:
|
|||||||
- 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: Get LAST_TAG
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
echo "${{ steps.get_last_tag.outputs.LAST_TAG }}"
|
|
||||||
- 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
|
||||||
|
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
|
@ -2,7 +2,7 @@
|
|||||||
# Build docker image
|
# Build docker image
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildTag
|
name: Nightly build
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@ -32,4 +32,4 @@ jobs:
|
|||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: zeguigui/open-report-analyzer:latest
|
tags: zeguigui/open-report-analyzer:nightly
|
@ -2,7 +2,7 @@
|
|||||||
# Build docker image
|
# Build docker image
|
||||||
#
|
#
|
||||||
|
|
||||||
name: BuildTag
|
name: Build Tag
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -33,4 +33,4 @@ jobs:
|
|||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }}
|
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }},zeguigui/open-report-analyzer:latest
|
Loading…
Reference in New Issue
Block a user