Skip to content

Commit

Permalink
Merge pull request #87 from D10S0VSkY-OSS/hotfix/schedule-rename-branch
Browse files Browse the repository at this point in the history
fix: schedule change branch and tfvars in deploy
  • Loading branch information
D10S0VSkY-OSS authored Jul 21, 2022
2 parents 2ee4915 + 303c08b commit 3a0ea56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sld-schedule-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Build the Docker image with tags
working-directory: ./sld-schedule
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.2.0
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.2.1

- name: Docker Push with tags
#if: github.event.pull_request.merged == true
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.2.0
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.2.1

- name: Build the Docker image
working-directory: ./sld-schedule
Expand Down
2 changes: 1 addition & 1 deletion play-with-sld/kubernetes/k8s/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
commonLabels:
app: stack-lifecycle-deploy
environment: play
version: 2.8.0
version: 2.8.1

resources:
- mysql-service.yml
Expand Down
9 changes: 9 additions & 0 deletions sld-schedule/helpers/get_deploy_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def get_deploy_by_id(deploy_id):
"environment": response['json']['environment'],
"start": response['json']['start_time'],
"destroy": response['json']['destroy_time'],
"stack_branch": response['json']['stack_branch'],
"tfvar_file": response['json']['tfvar_file'],
"project_path": response['json']['project_path'],
}
return(data)
except Exception as err:
Expand All @@ -93,6 +96,9 @@ def update_deploy(deploy_id):
data = {
"start_time": content['start_time'],
"destroy_time": content['destroy_time'],
"stack_branch": response['json']['stack_branch'],
"tfvar_file": response['json']['tfvar_file'],
"project_path": response['json']['project_path'],
"variables": content['variables']
}
response = request_url(
Expand All @@ -117,6 +123,9 @@ def destroy_deploy(deploy_id):
data = {
"start_time": content['start_time'],
"destroy_time": content['destroy_time'],
"stack_branch": response['json']['stack_branch'],
"tfvar_file": response['json']['tfvar_file'],
"project_path": response['json']['project_path'],
"variables": content['variables']
}
response = request_url(
Expand Down

0 comments on commit 3a0ea56

Please sign in to comment.