Skip to content
Open

Dev #38

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cdf3151
Update values.yaml
jucardona-nisum Feb 20, 2023
55aa653
Update ci.yml
jucardona-nisum Feb 20, 2023
212cd86
Update Index.cshtml
jucardona-nisum Feb 20, 2023
ac23213
Merge pull request #1 from jucardona-nisum/dev
jucardona-nisum Feb 20, 2023
639da26
Update ci.yml
jucardona-nisum Feb 20, 2023
06e0a4d
cambio en repositorio
Feb 20, 2023
178b35c
Update Index.cshtml
jucardona-nisum Feb 20, 2023
b4d6f6a
Update Index.cshtml
jucardona-nisum Feb 20, 2023
9af9537
Update values.yaml
jucardona-nisum Feb 20, 2023
cda85cd
Update values.yaml
jucardona-nisum Feb 20, 2023
eecfc87
Update Index.cshtml
jucardona-nisum Feb 21, 2023
8b01f66
Delete helm/webapp directory
jucardona-nisum Feb 22, 2023
44836be
Update Index.cshtml
jucardona-nisum Feb 22, 2023
7eed019
Merge pull request #2 from jucardona-nisum/dev
jucardona-nisum Feb 22, 2023
4c3aac7
Update pr.yml
jucardona-nisum Feb 22, 2023
1f60b55
Update pr.yml
jucardona-nisum Feb 22, 2023
7f71704
Update ci.yml
jucardona-nisum Feb 22, 2023
f9ac929
Update Index.cshtml
jucardona-nisum Feb 23, 2023
5d33150
Update Index.cshtml
jucardona-nisum Feb 23, 2023
4f1a372
Update Index.cshtml
jucardona-nisum Feb 23, 2023
80d3f2b
Update Index.cshtml
jucardona-nisum Feb 23, 2023
5338c4f
Update Index.cshtml
jucardona-nisum Feb 23, 2023
c09b916
Update Index.cshtml v1
jucardona-nisum Nov 20, 2023
f6431ee
Update Index.cshtml
jucardona-nisum Nov 20, 2023
23e0ac9
Update ci.yml
jucardona-nisum Nov 21, 2023
3300f1c
Update ci.yml
jucardona-nisum Nov 21, 2023
bdde224
Merge pull request #3 from jucardona-nisum/main
jucardona-nisum Nov 21, 2023
ae37368
Update Index.cshtml
jucardona-nisum Nov 21, 2023
35d666a
Update Index.cshtml
jucardona-nisum Nov 21, 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
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- 'main'
- 'dev'

jobs:
build-test:
Expand Down Expand Up @@ -39,19 +40,23 @@ jobs:
context: .
file: WebApplication1/Dockerfile
push: true
tags: mabusaa/argocd-course-webapp:${{ github.sha }}
tags: nachocardona/argocd-course-webapp:${{ github.sha }}
promote-to-dev-environment:
runs-on: ubuntu-latest
needs: docker-build-push
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- run: |
echo "promoting into dev environment!"
git config --global user.email [email protected] && git config --global user.name ci-bot
echo "cloning config repo $CONFIG_REPO_NAME"
git clone https://oauth2:${{ secrets.GH_PAT }}@github.com/${{ github.repository_owner }}/$CONFIG_REPO_NAME.git
cd $CONFIG_REPO_NAME
echo "checkout main branch"
git checkout main
echo "checkout ${{ steps.extract_branch.outputs.branch }}"
git checkout ${{ steps.extract_branch.outputs.branch }}
echo "updating image tag in values file"
sed -i "s,tag:.*,tag:\ ${{ github.sha }}," helm/webapp/values.yaml
git add . && git commit -m "update image tag"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
context: .
file: WebApplication1/Dockerfile
push: true
tags: mabusaa/argocd-course-webapp:${{ github.event.pull_request.head.sha }}
tags: nachocardona/argocd-course-webapp:${{ github.event.pull_request.head.sha }}
update-image-tag-in-helm:
runs-on: ubuntu-latest
needs: docker-build-push
Expand Down
2 changes: 1 addition & 1 deletion WebApplication1/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
}

<div class="text-center">
<h1 class="display-4">Welcome to this demo</h1>
<h1 class="display-4">Welcome to this demo v1.1 - ArgoCD is working</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>
24 changes: 0 additions & 24 deletions helm/webapp/Chart.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions helm/webapp/templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions helm/webapp/templates/_helpers.tpl

This file was deleted.

61 changes: 0 additions & 61 deletions helm/webapp/templates/deployment.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions helm/webapp/templates/hpa.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions helm/webapp/templates/ingress.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions helm/webapp/templates/service.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions helm/webapp/templates/serviceaccount.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions helm/webapp/templates/tests/test-connection.yaml

This file was deleted.

Loading