Skip to content

Commit

Permalink
ci: dryrun create namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed Oct 2, 2023
1 parent b503c4e commit 10496fc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ jobs:
if: ${{ !(github.ref == 'refs/heads/master') }}
run: |
./argo-linux-amd64 lint templates/ -n argo
TEST_NAMESPACE=${GITHUB_REF_NAME////-}
echo $TEST_NAMESPACE
./argo-linux-amd64 lint workflows/ -n argo
TEST_NAMESPACE=${GITHUB_REF_NAME////-}-$GITHUB_SHA
kubectl create namespace $TEST_NAMESPACE --dry-run
# May need to deploy config files too
#$TEST_NAMESPACE
#kubectl apply -f templates/argo-tasks/ --namespace $TEST_NAMESPACE
./argo-linux-amd64 lint workflows/ -n argo
- name: Deploy workflows
if: github.ref == 'refs/heads/master'
Expand All @@ -82,5 +85,7 @@ jobs:
- name: Re-Lint workflows
if: github.ref == 'refs/heads/master'
run: |
echo "delete $TEST_NAMESPACE"
./argo-linux-amd64 lint templates/ -n argo
./argo-linux-amd64 lint workflows/ -n argo

0 comments on commit 10496fc

Please sign in to comment.