Skip to content

Commit fe379df

Browse files
committed
Reinstate build-and-push github workflow
1 parent fb0bb33 commit fe379df

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

0 commit comments

Comments
 (0)