-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (35 loc) · 1.04 KB
/
webviz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: webviz
on:
push:
pull_request:
branches:
- main
release:
types:
- published
jobs:
webviz:
if: github.event_name != 'push' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: 📖 Checkout commit locally
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: 🐳 Build Docker images
run: |
docker build -f frontend-prod.Dockerfile -t ghcr.io/equinor/webviz_frontend:latest .
docker build -f backend.Dockerfile -t ghcr.io/equinor/webviz_backend:latest .
- name: GitHub Container Registry login
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🐳 Push Docker images
if: github.ref == 'refs/heads/main'
run: |
docker push ghcr.io/equinor/webviz_frontend:latest
docker push ghcr.io/equinor/webviz_backend:latest