Skip to content

ci: deploy automatic PR deployments on request #8121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 106 commits into from
Jun 22, 2023
Merged
Changes from 1 commit
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
702f54c
add actions
matifali Jun 21, 2023
f5f9d16
rename namespace and release
matifali Jun 21, 2023
e9a7b8d
specify kubeconfig
matifali Jun 21, 2023
1f09be4
fix
matifali Jun 21, 2023
69ab482
make fmt
matifali Jun 21, 2023
e999ee3
run on push
matifali Jun 21, 2023
5ac17ab
test
matifali Jun 21, 2023
daeb57e
use docker/actions to build
matifali Jun 21, 2023
fa54ba1
add triggers for testing
matifali Jun 21, 2023
4ef28b5
add trigger
matifali Jun 21, 2023
b0f836d
skip tests
matifali Jun 21, 2023
639066a
fix
matifali Jun 21, 2023
90d7fa4
fix fix
matifali Jun 21, 2023
3e17ae4
skip gen and lint for testing
matifali Jun 21, 2023
ed26c6a
remove version
matifali Jun 21, 2023
b7cc405
refactor
matifali Jun 21, 2023
8a06547
remove pr trigger
matifali Jun 21, 2023
f2ebd72
make fmt
matifali Jun 21, 2023
c4b2fbb
add pr trigger
matifali Jun 21, 2023
b4b8b5f
cleanup pr image
matifali Jun 21, 2023
e70aed2
prcleanup
matifali Jun 21, 2023
a3e8920
setup go and node
matifali Jun 21, 2023
c182ff4
fix version
matifali Jun 21, 2023
f9f5a8d
gix build path
matifali Jun 21, 2023
dcef765
use buildjet
matifali Jun 21, 2023
aee27e5
set concurrency
matifali Jun 21, 2023
1cbc692
add workflow_dispatch to cleanup
matifali Jun 21, 2023
ecb3e76
try changing permission
matifali Jun 21, 2023
d8dfd59
reorder steps
matifali Jun 21, 2023
6d0d73d
install sqlc
matifali Jun 21, 2023
6233443
make gen
matifali Jun 21, 2023
901e304
fix syntax
matifali Jun 21, 2023
49d4795
make fmt
matifali Jun 21, 2023
56d1b8d
remove deliverybot
matifali Jun 21, 2023
6a49c5d
fix helm
matifali Jun 21, 2023
bec0861
refactor and rename
matifali Jun 21, 2023
8e8c2ae
remove deployment trigger
matifali Jun 21, 2023
832fa66
refactor
matifali Jun 21, 2023
270b639
refactor
matifali Jun 21, 2023
509f9f4
refactor
matifali Jun 21, 2023
23b7983
fix PR_NUMBER
matifali Jun 21, 2023
1715213
remove extra triggers
matifali Jun 21, 2023
ccba656
fix action outputs
matifali Jun 21, 2023
019b460
add trigger for testing
matifali Jun 21, 2023
76e4736
fix tag
matifali Jun 21, 2023
13d5682
try again
matifali Jun 21, 2023
c4b96bf
refactor
matifali Jun 21, 2023
7ff0e6a
refactor
matifali Jun 21, 2023
ee4138d
add workflow-dispatch
matifali Jun 21, 2023
ad3386e
fix syntax
matifali Jun 21, 2023
8a16f40
correct tag name
matifali Jun 21, 2023
164fcb3
fix!
matifali Jun 21, 2023
f8f9ca7
fix output
matifali Jun 21, 2023
9358201
fix comment path
matifali Jun 21, 2023
9a2aba4
fix! comments
matifali Jun 21, 2023
48f5877
delete namespace if it already exists
matifali Jun 21, 2023
129f21e
use correct name for helm install
matifali Jun 21, 2023
d360a02
edit the existing comment instead of creating new
matifali Jun 21, 2023
72d5388
replace existing comment
matifali Jun 21, 2023
5e91975
add reaction
matifali Jun 21, 2023
761816b
remove deploy/yml
matifali Jun 21, 2023
d9a6f44
make fmt
matifali Jun 21, 2023
77a1684
cancel in-progress runs
matifali Jun 21, 2023
188df50
use upgrade and --force
matifali Jun 21, 2023
70ca35c
fix typo
matifali Jun 21, 2023
59f1530
fix helm and slack notification
matifali Jun 21, 2023
500c534
fix helm
matifali Jun 21, 2023
0849718
make fmt
matifali Jun 21, 2023
d6d0c37
rename actions files
matifali Jun 21, 2023
864200d
fix typo
matifali Jun 21, 2023
edb6c69
fix bash synatax
matifali Jun 21, 2023
d959481
Merge branch 'main' into matifali/pr-deploymnets
matifali Jun 21, 2023
15b3395
register workflows
matifali Jun 21, 2023
71fd390
register workflows
matifali Jun 21, 2023
f9f4090
remove push trigger
matifali Jun 21, 2023
0d27472
upgrade helm
matifali Jun 21, 2023
6293bb6
handle errors
matifali Jun 21, 2023
cbbc543
fix bash
matifali Jun 21, 2023
84723c2
update Slack channel
matifali Jun 21, 2023
f54996f
fix typo
matifali Jun 21, 2023
b44dbd7
change trigger word
matifali Jun 21, 2023
6e521a2
fix cleanup
matifali Jun 21, 2023
0c5a9d3
update comments
matifali Jun 22, 2023
b0469dc
do not build the base-image everytime
matifali Jun 22, 2023
d24ad7f
run cleanup jobs always
matifali Jun 22, 2023
76d5d59
compute diff with `main`
matifali Jun 22, 2023
66ea350
add PR URL to slack notification
matifali Jun 22, 2023
65768ac
typo!
matifali Jun 22, 2023
e38d5af
remove preview-base-image and optimize build
matifali Jun 22, 2023
941fa3c
fix build target
matifali Jun 22, 2023
9744269
hide ACCESS_URL from logs
matifali Jun 22, 2023
d7a7af1
format slack message
matifali Jun 22, 2023
3e68f6e
hide errors too
matifali Jun 22, 2023
137ef1b
send output to /dev/null
matifali Jun 22, 2023
58d90fd
try masking the URL
matifali Jun 22, 2023
81e4b1d
remove base-image cleanup
matifali Jun 22, 2023
2ef6e5b
install helm always
matifali Jun 22, 2023
eaf3912
Discard changes to .github/workflows/ci.yaml
matifali Jun 22, 2023
9c1d961
Merge branch 'main' into matifali/pr-deploymnets
matifali Jun 22, 2023
d0ada58
use subshell to hide CODER_ACCESS_URL
matifali Jun 22, 2023
8e7d96c
set up GITHUB_TOKEN for helm
matifali Jun 22, 2023
6844cbc
fixup!
matifali Jun 22, 2023
9ed4c0c
rename job to cleanup
matifali Jun 22, 2023
9111624
Merge branch 'main' into matifali/pr-deploymnets
matifali Jun 22, 2023
1a22346
helm is pre-installed
matifali Jun 22, 2023
c03901d
add link to slack channel.
matifali Jun 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reorder steps
  • Loading branch information
matifali committed Jun 21, 2023
commit d8dfd59e78d8e9b5ff5e7bf4da632f46d75e823b
8 changes: 4 additions & 4 deletions .github/workflows/prcleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
pr-close:
runs-on: "ubuntu-latest"
steps:
- name: "Remove PR namespace"
run: |
kubectl delete namespace "pr${{ env.PR_NUMBER }}" --kubeconfig "${{ secrets.DELIVERYBOT_KUBECONFIG }}"

- name: Delete base image
uses: bots-house/ghcr-delete-image-action@v1.1.0
with:
Expand All @@ -38,3 +34,7 @@ jobs:
name: coder-preview
token: ${{ secrets.GITHUB_TOKEN }}
tag: pr${{ env.PR_NUMBER }}

- name: "Remove PR namespace"
run: |
kubectl delete namespace "pr${{ env.PR_NUMBER }}" --kubeconfig "${{ secrets.DELIVERYBOT_KUBECONFIG }}"