-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
76 additions
and
89 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Upload To S3 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
UploadResumeToS3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Prepare Build | ||
# run: | | ||
# sudo apt update && sudo apt install -y texlive-latex-base texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra | ||
|
||
- name: Add Version | ||
run: | | ||
sudo apt-get install uuid-runtime -y | ||
v=$(uuidgen | rev | cut -d- -f1 | rev) | ||
echo "VERSION=$v" >> "$GITHUB_ENV" | ||
sed -i -e "s/__VERSION__/$v/" src/resume.tex | ||
# - name: Build | ||
# run: cd src && pdflatex resume.tex | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v3 | ||
with: | ||
role-to-assume: arn:aws:iam::654654198429:role/RoleForResumeGithubActions | ||
role-session-name: SessionResumeGithubActions | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Upload to S3 | ||
run: | | ||
sudo chmod +x ./deploy/deploy.sh | ||
./deploy/deploy.sh --version $VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
# DResume | ||
|
||
[](https://github.com/shaiq-dev/Resume/actions/workflows/build.yml) | ||
|
||
The resume is written in latex and uses **`Alta CV`** template. Devops part is based on the following architecture. | ||
|
||
 | ||
|
||
|
||
I have written a complete tutorial on [medium](https://shaiqkar.medium.com/) for this project. [Check that out](https://shaiqkar.medium.com/build-a-devopsified-resume-with-github-and-aws-21c0e38df1c4) | ||
# Resume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AWSTemplateFormatVersion: "2010-09-09" | ||
|
||
Resources: | ||
|
||
Bucket: | ||
Type: "AWS::S3::Bucket" | ||
Properties: | ||
BucketName: "resume-shaiqkar-dev" | ||
|
||
Outputs: | ||
|
||
BucketName: | ||
Value: !Ref Bucket | ||
Description: "Name of the S3 bucket created" |