From 2cfe12f4edb1ede8e9cfc05454e72bf314f257d5 Mon Sep 17 00:00:00 2001 From: joan vicens Date: Fri, 21 Oct 2022 12:37:44 +0200 Subject: [PATCH 1/5] chore: random file text --- test | 1 + 1 file changed, 1 insertion(+) create mode 100644 test diff --git a/test b/test new file mode 100644 index 00000000..9ab9a7e9 --- /dev/null +++ b/test @@ -0,0 +1 @@ +this is test \ No newline at end of file From 99c96551f59d0e39db86ad8ac3be8f76ca57fa7c Mon Sep 17 00:00:00 2001 From: joan vicens Date: Mon, 24 Oct 2022 09:58:17 +0200 Subject: [PATCH 2/5] feat: added remove deployment container --- .github/workflows/remove-deployed-feature.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/remove-deployed-feature.yml diff --git a/.github/workflows/remove-deployed-feature.yml b/.github/workflows/remove-deployed-feature.yml new file mode 100644 index 00000000..e908a12f --- /dev/null +++ b/.github/workflows/remove-deployed-feature.yml @@ -0,0 +1,27 @@ +name: Deploy feature +on: + workflow_dispatch: + inputs: + pr: + type: string +jobs: + remove: + needs: [build,retrive-pr] + runs-on: ubuntu-latest + environment: + name: develop + steps: + - uses: actions/checkout@v2 + - name: Remove featuare container + run: echo "Would remove the container with the image drive-server-dev:${{ github.sha }}-pr${{ github.event.inputs.pr }}" + # uses: steebchen/kubectl@v2.0.0 + # with: # defaults to latest kubectl binary version + # config: ${{ secrets.KUBE_CONFIG_DATA_DEVELOPMENT }} + # version: v1.22.2 + # command: set image --record deployment/drive-server-dev drive-server-dev=${{ secrets.DOCKERHUB_USERNAME }}/drive-server-dev:${{ github.sha }}-pr${{ github.event.inputs.pr }} + # - name: Verify drive-server deployment + # uses: steebchen/kubectl@v2.0.0 + # with: + # config: ${{ secrets.KUBE_CONFIG_DATA_DEVELOPMENT }} + # version: v1.22.2 # specify kubectl binary version explicitly + # command: rollout status deployment/drive-server-dev \ No newline at end of file From a84b27b266e62ec6da303fbb3124b532f43e0ca2 Mon Sep 17 00:00:00 2001 From: joan vicens Date: Mon, 24 Oct 2022 10:14:09 +0200 Subject: [PATCH 3/5] fix: workflow name --- .github/workflows/remove-deployed-feature.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/remove-deployed-feature.yml b/.github/workflows/remove-deployed-feature.yml index e908a12f..a93cacfa 100644 --- a/.github/workflows/remove-deployed-feature.yml +++ b/.github/workflows/remove-deployed-feature.yml @@ -1,4 +1,4 @@ -name: Deploy feature +name: Remove Deployed feature on: workflow_dispatch: inputs: From 19c81df027d5f4ae291c21ab57a373297ebc17ca Mon Sep 17 00:00:00 2001 From: joan vicens Date: Mon, 24 Oct 2022 10:14:54 +0200 Subject: [PATCH 4/5] fix: remove job dependencies --- .github/workflows/remove-deployed-feature.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/remove-deployed-feature.yml b/.github/workflows/remove-deployed-feature.yml index a93cacfa..6be88626 100644 --- a/.github/workflows/remove-deployed-feature.yml +++ b/.github/workflows/remove-deployed-feature.yml @@ -6,7 +6,6 @@ on: type: string jobs: remove: - needs: [build,retrive-pr] runs-on: ubuntu-latest environment: name: develop From a8548b24dc5433cf8c49f42b1ab8b9449e6a583c Mon Sep 17 00:00:00 2001 From: joan vicens Date: Mon, 24 Oct 2022 10:21:17 +0200 Subject: [PATCH 5/5] chore: remove test file --- test | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test diff --git a/test b/test deleted file mode 100644 index 9ab9a7e9..00000000 --- a/test +++ /dev/null @@ -1 +0,0 @@ -this is test \ No newline at end of file