File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 97
97
NEXT_PUBLIC_API_URL=https://etu.utt.fr/api
98
98
NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login
99
99
tags : |
100
- ${{ secrets.REGISTRY_URL }}/etuutt/front:prod
100
+ ${{ secrets.REGISTRY_URL }}/etuutt/front:prod
101
+
102
+ deploy-test :
103
+ if : ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/feat/test-ci') }}
104
+ runs-on : self-hosted
105
+ needs :
106
+ - lint
107
+ - build
108
+ steps :
109
+ - uses : actions/checkout@v4
110
+ - name : Install docker
111
+ uses : docker/setup-buildx-action@v3
112
+ - name : Login to registry
113
+ uses : docker/login-action@v3
114
+ with :
115
+ registry : ${{ secrets.REGISTRY_URL }}
116
+ username : ${{ secrets.REGISTRY_USERNAME }}
117
+ password : ${{ secrets.REGISTRY_TOKEN }}
118
+ - run : cp .env.dist .env.prod
119
+ - name : Build and push
120
+ uses : docker/build-push-action@v6
121
+ with :
122
+ push : true
123
+ build-args : |
124
+ NODE_ENV=production
125
+ NEXT_PUBLIC_API_URL=https://etu.utt.fr/api
126
+ NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login
127
+ tags : |
128
+ ${{ secrets.REGISTRY_URL }}/etuutt/front:test
You can’t perform that action at this time.
0 commit comments