-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 963 Bytes
/
frontend.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
42
43
44
name: Frontend CI
on:
workflow_dispatch:
push:
paths:
- 'packages/frontend/**'
env:
IMAGE_TAG: latest
IMAGE_REPO: ${{ secrets.DOCKER_USERNAME }}
jobs:
publish:
name: Publish Docker image
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
env:
APPS: frontend
PLATFORMS: linux/amd64,linux/arm64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Install dependencies
run: yarn install
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build the image
run: yarn script build --push