2022-12-13 02:42:18 +00:00
|
|
|
name: Uninstall apps
|
2022-11-30 08:10:12 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- closed
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
jobs:
|
2022-12-13 02:18:36 +00:00
|
|
|
down:
|
2022-11-30 08:10:12 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-13 02:18:36 +00:00
|
|
|
- name: Docker meta
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@v4
|
2022-11-30 08:10:12 +00:00
|
|
|
with:
|
2022-12-13 02:18:36 +00:00
|
|
|
images: |
|
|
|
|
nocobase/nocobase
|
|
|
|
tags: |
|
|
|
|
type=ref,event=branch
|
|
|
|
type=ref,event=pr
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
- name: Down ${{ steps.meta.outputs.tags }}
|
|
|
|
env:
|
|
|
|
IMAGE_TAG: ${{ steps.meta.outputs.tags }}
|
|
|
|
run: |
|
|
|
|
echo $IMAGE_TAG
|
|
|
|
export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2)
|
|
|
|
echo $APP_NAME
|
2023-02-08 01:20:17 +00:00
|
|
|
curl --retry 2 --location --request DELETE "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME"
|