@@ -47,20 +47,21 @@ jobs:
47
47
48
48
- name : Build Staging
49
49
run : |
50
- DOMAIN={{cookiecutter.domain_staging}}
51
- TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag_staging}}
52
- STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}}
53
- TAG=staging
54
- FRONTEND_ENV=staging
50
+ DOMAIN={{cookiecutter.domain_staging}} \
51
+ TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag_staging}} \
52
+ STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}} \
53
+ TAG=staging \
54
+ FRONTEND_ENV=staging \
55
55
sh ./scripts/build-push.sh
56
56
57
- - name : Deploy Staging
58
- run : |
59
- DOMAIN={{cookiecutter.domain_staging}}
60
- TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag_staging}}
61
- STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}}
62
- TAG=staging
63
- sh ./scripts/deploy.sh
57
+ # Uncomment to attempt deploying, need to valiate functionality
58
+ # - name: Deploy Staging
59
+ # run: |
60
+ # DOMAIN={{cookiecutter.domain_staging}} \
61
+ # TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag_staging}} \
62
+ # STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}} \
63
+ # TAG=staging \
64
+ # sh ./scripts/deploy.sh
64
65
needs : tests
65
66
66
67
deploy-prod :
@@ -69,34 +70,33 @@ jobs:
69
70
steps :
70
71
- name : Check out code
71
72
uses : actions/checkout@v4
72
-
73
73
{% raw %}
74
74
- name : Log in to Docker Registry
75
75
uses : docker/login-action@v3
76
76
with :
77
77
username : ${{ secrets.DOCKERHUB_USERNAME }}
78
78
password : ${{ secrets.DOCKERHUB_TOKEN }}
79
79
{% endraw %}
80
-
81
80
- name : Install docker-auto-labels
82
81
run : pip install docker-auto-labels
83
82
84
83
- name : Build Production
85
84
run : |
86
- DOMAIN={{cookiecutter.domain_main}}
87
- TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}}
88
- STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}}
89
- TAG=prod
90
- FRONTEND_ENV=production
85
+ DOMAIN={{cookiecutter.domain_main}} \
86
+ TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}} \
87
+ STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}} \
88
+ TAG=prod \
89
+ FRONTEND_ENV=production \
91
90
sh ./scripts/build-push.sh
92
91
93
- - name : Deploy Production
94
- run : |
95
- DOMAIN={{cookiecutter.domain_main}}
96
- TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}}
97
- STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}}
98
- TAG=prod
99
- sh ./scripts/deploy.sh
92
+ # Uncomment to attempt deploying, need to valiate functionality
93
+ # - name: Deploy Production
94
+ # run: |
95
+ # DOMAIN={{cookiecutter.domain_main}} \
96
+ # TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}} \
97
+ # STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}} \
98
+ # TAG=prod \
99
+ # sh ./scripts/deploy.sh
100
100
needs : tests
101
101
102
102
0 commit comments