File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Push Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+
12
+ build-and-push :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Log in to Docker Hub
16
+ uses : docker/login-action@v3
17
+ with :
18
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
19
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
20
+ - name : Extract metadata
21
+ id : meta
22
+ uses : docker/metadata-action@v5
23
+ with :
24
+ images : hicsail/damplab-ui
25
+ - name : Build and push Docker image
26
+ uses : docker/build-push-action@v6
27
+ with :
28
+ push : true
29
+ tags : ${{ steps.meta.outputs.tags }}
30
+ build-args : |
31
+ VITE_BACKEND=${{ secrets.VITE_BACKEND }}
32
+ VITE_KEYCLOAK_URL=${{ secrets.VITE_KEYCLOAK_URL }}
33
+ VITE_KEYCLOAK_REALM=${{ secrets.VITE_KEYCLOAK_REALM }}
34
+ VITE_KEYCLOAK_CLIENT_ID=${{ secrets.VITE_KEYCLOAK_CLIENT_ID }}
You can’t perform that action at this time.
0 commit comments