From a9d89ff83015c38a5011df8a7f281ed554861a48 Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Thu, 17 Apr 2025 15:31:38 +0300 Subject: [PATCH] try --- .gitea/actions/k8s/action.yaml | 33 ---------------------------- .github/workflows/deployk8s.yaml | 1 + .github/workflows/notify/action.yaml | 26 ---------------------- actions/k8s/action.yaml | 33 ---------------------------- actions/notify/action.yaml | 26 ---------------------- notify/action.yaml | 26 ---------------------- 6 files changed, 1 insertion(+), 144 deletions(-) delete mode 100644 .gitea/actions/k8s/action.yaml delete mode 100644 .github/workflows/notify/action.yaml delete mode 100644 actions/k8s/action.yaml delete mode 100644 actions/notify/action.yaml delete mode 100644 notify/action.yaml diff --git a/.gitea/actions/k8s/action.yaml b/.gitea/actions/k8s/action.yaml deleted file mode 100644 index 1ddcc16..0000000 --- a/.gitea/actions/k8s/action.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'k8s deploy' -description: 'k8s deploy' - -inputs: - tag: - required: false - type: string - default: latest - migrate: - type: boolean - default: false - configs: - type: boolean - default: false - environment: - type: string - required: true - -runs: - using: 'composite' - steps: - - run: "echo a: Set up QEMU2" - - - run: | - sleep 10 - echo 'sleep 10 end' - - - run: "echo b: Login to DockerHub" - if: ${{ inputs.password != '' }} - - - run: | - sleep 10 - echo 'c: Set up Docker BuildX' \ No newline at end of file diff --git a/.github/workflows/deployk8s.yaml b/.github/workflows/deployk8s.yaml index 3d57b4f..18ee301 100644 --- a/.github/workflows/deployk8s.yaml +++ b/.github/workflows/deployk8s.yaml @@ -24,6 +24,7 @@ on: jobs: deploy: + if: contains(format(',{0},', secrets.ADMIN_USERS), format(',{0},', github.actor)) runs-on: ubuntu-latest env: CR_REGISTRY: crp8vh46gd976oq8ipla diff --git a/.github/workflows/notify/action.yaml b/.github/workflows/notify/action.yaml deleted file mode 100644 index f55bdc9..0000000 --- a/.github/workflows/notify/action.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'notify' -description: 'notify' - -inputs: - result: - required: false - default: "failure" - type: string - name: - required: false - type: string - default: build - -env: - icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}' - -runs: - using: 'composite' - steps: - - uses: mattermost/action-mattermost-notify@master - with: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} - PAYLOAD: | - { - "text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}" - } diff --git a/actions/k8s/action.yaml b/actions/k8s/action.yaml deleted file mode 100644 index 1ddcc16..0000000 --- a/actions/k8s/action.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'k8s deploy' -description: 'k8s deploy' - -inputs: - tag: - required: false - type: string - default: latest - migrate: - type: boolean - default: false - configs: - type: boolean - default: false - environment: - type: string - required: true - -runs: - using: 'composite' - steps: - - run: "echo a: Set up QEMU2" - - - run: | - sleep 10 - echo 'sleep 10 end' - - - run: "echo b: Login to DockerHub" - if: ${{ inputs.password != '' }} - - - run: | - sleep 10 - echo 'c: Set up Docker BuildX' \ No newline at end of file diff --git a/actions/notify/action.yaml b/actions/notify/action.yaml deleted file mode 100644 index f55bdc9..0000000 --- a/actions/notify/action.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'notify' -description: 'notify' - -inputs: - result: - required: false - default: "failure" - type: string - name: - required: false - type: string - default: build - -env: - icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}' - -runs: - using: 'composite' - steps: - - uses: mattermost/action-mattermost-notify@master - with: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} - PAYLOAD: | - { - "text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}" - } diff --git a/notify/action.yaml b/notify/action.yaml deleted file mode 100644 index f55bdc9..0000000 --- a/notify/action.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'notify' -description: 'notify' - -inputs: - result: - required: false - default: "failure" - type: string - name: - required: false - type: string - default: build - -env: - icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}' - -runs: - using: 'composite' - steps: - - uses: mattermost/action-mattermost-notify@master - with: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} - PAYLOAD: | - { - "text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}" - }