Skip to content

add ci tag check to backup and restore build #77

add ci tag check to backup and restore build

add ci tag check to backup and restore build #77

Workflow file for this run

name: OnMerge
on:
pull_request:
branches:
- 'dev'
- 'main'
- 'master'
types:
- closed
env:
GITHUB_WORKFLOW_FOLDER: ./.github/workflows
JEMPI_APP_PATH: ./JeMPI_Apps
defaults:
run:
shell: bash
jobs:
prepare:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/prepare
build-deploy-images:
runs-on: ubuntu-22.04
needs: [prepare]
steps:
- uses: actions/checkout@v4
- id: get-docker-push-tag
run: echo "docker-push-tag=$(git rev-parse --abbrev-ref HEAD)-$(git log -1 --pretty=format:%h)" >> $GITHUB_OUTPUT
- uses: ./.github/workflows/actions/build-deploy-images
with:
docker-push-tag: ${{ steps.get-docker-push-tag.outputs.docker-push-tag }}
docker-host: "docker.io"
docker-username: ${{ secrets.DOCKER_HUB_USER_NAME }}
docker-password: ${{ secrets.DOCKER_HUB_PASSWORD }}