Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9af4e4b
refactor: change endpoints route
Feb 28, 2023
a0630a5
refactor: backend port
Mar 2, 2023
47886f4
intial commit
mmaquina Mar 7, 2023
bd0ed34
fix make publish
mmaquina Mar 7, 2023
bae05e3
fix aws login
mmaquina Mar 7, 2023
149d0a9
build for arm
mmaquina Mar 7, 2023
12c4efb
build for x86
mmaquina Mar 8, 2023
84dfc1c
change backend link
mmaquina Mar 8, 2023
ccb4d0c
backend url
mmaquina Mar 10, 2023
c0485f6
add pull and run script to workflow
mmaquina Mar 16, 2023
f49c30f
add pull and run
mmaquina Mar 16, 2023
858f66a
add pull and run
mmaquina Mar 16, 2023
d2d26b8
stage complete
mmaquina Mar 16, 2023
2be5496
stage complete
mmaquina Mar 16, 2023
6a56248
stage complete
mmaquina Mar 16, 2023
6d31865
test prod pipeline
mmaquina Mar 16, 2023
b38b4c7
fix makefile
mmaquina Mar 16, 2023
7732b31
fix makefile
mmaquina Mar 16, 2023
4839c53
test stage pipeline
mmaquina Mar 22, 2023
7b2fa6d
fix time-entries url
mmaquina Mar 27, 2023
4be90dd
fix .stage.env
mmaquina Mar 27, 2023
60b09dd
fix aws env
mmaquina Mar 28, 2023
50569ee
env
mmaquina Mar 28, 2023
e3d5ed8
fix findEntriesByProjectId endpoint url
mmaquina Mar 28, 2023
a921b9f
fix url createEntry
mmaquina Mar 28, 2023
f422533
create env file for prod
mmaquina Apr 4, 2023
e6bbd38
test url prod
mmaquina Apr 4, 2023
709012c
test url prod
mmaquina Apr 4, 2023
bc973bb
triggers by tag->prod publish release->stage
mmaquina Apr 4, 2023
9f68b79
restore old .stage.env, add newlines
mmaquina Apr 4, 2023
35925f5
disable triggers to azure workflow
mmaquina Apr 4, 2023
650e644
delete actions, scp files to ec2
mmaquina Apr 21, 2023
b868127
fix triggers
mmaquina Apr 21, 2023
48fbd7f
fix:change API_URL
mmaquina Apr 22, 2023
8e1f890
fix:change API_URL
mmaquina Apr 22, 2023
5a88ffd
merge from master
mmaquina Apr 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
intial commit
  • Loading branch information
mmaquina committed Mar 7, 2023
commit 47886f43a6de0f69b87d777a579c48e7a525b416
57 changes: 57 additions & 0 deletions .github/workflows/aws-ui-cd-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: time-tracker-ui-cd-stage

on:
push:
branches:
- 'fix-workflow'

jobs:
cd:
runs-on: ubuntu-latest
env:
TF_WORKSPACE: stage
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get the release_version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo $RELEASE_VERSION


- name: Unlock STAGE secrets
uses: sliteteam/[email protected]
env:
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY_STAGE }}

- name: Build the docker image
run: |-
docker build \
--target production -t timetracker_ui -f Dockerfile_stage \
.

- name: Publish docker image to stage azure container registry
run: |
make login publish image_tag=$RELEASE_VERSION

# - name: Setup terraform
# uses: hashicorp/setup-terraform@v1
# with:
# terraform_version: 1.1.9

# - name: Authenticate with the TF modules repository
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}

# - name: Terraform Init
# working-directory: ${{ env.WORKING_DIR }}
# run: terraform init

# - name: Terraform Apply
# working-directory: ${{ env.WORKING_DIR }}
# run: terraform apply -var-file="${{ env.TF_WORKSPACE }}.tfvars" -var "image_tag=$RELEASE_VERSION" -auto-approve
Binary file modified .stage.env
Binary file not shown.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ remove_prod: ## Delete container timetracker_ui_prod.

.PHONY: publish_prod
publish_prod: ## Upload a docker image to the prod azure container registry acr=<name_of_the_azure_container_registry> image_tag=<tag_for_the_image>
docker tag timetracker_ui_prod:latest $(acr).azurecr.io/timetracker_ui:$(image_tag)
docker push $(acr).azurecr.io/timetracker_ui:$(image_tag)
docker tag timetracker_ui_prod:latest 568748651446.dkr.ecr.us-east-1.amazonaws.com/time-tracker/stage-ui:$(image_tag)
docker push 568748651446.dkr.ecr.us-east-1.amazonaws.com/time-tracker/stage-ui:$(image_tag)

.PHONY: login
login: ## Login in respository of docker images
Expand Down