-
-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (41 loc) · 1.11 KB
/
ghcr.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: publish to ghcr
on:
workflow_dispatch:
push:
branches:
- master
jobs:
push:
name: "g5v:latest"
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- id: string
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository_owner }}
- uses: actions/[email protected]
- uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/[email protected]
with:
node-version: 16
cache: 'yarn'
- run: yarn install
- run: yarn build
- uses: docker/[email protected]
with:
context: .
file: DockerfileLight
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
ghcr.io/${{ steps.string.outputs.lowercase }}/g5v:latest