-
Notifications
You must be signed in to change notification settings - Fork 9.3k
52 lines (41 loc) · 1.29 KB
/
docker-build-push-unstable.yml
File metadata and controls
52 lines (41 loc) · 1.29 KB
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
45
46
47
48
49
50
51
52
name: Build & Push SwaggerUI unstable Docker image
on:
workflow_run:
workflows: ["Node.js CI"]
types:
- completed
branches: [master]
jobs:
build-push-unstable:
if: github.event.workflow_run.conclusion == 'success'
name: Build & Push SwaggerUI unstable Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Build SwaggerUI
run: npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_SB_USERNAME }}
password: ${{ secrets.DOCKERHUB_SB_PASSWORD }}
- name: Build docker image and push
uses: docker/build-push-action@v7
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v6,linux/arm64,linux/386,linux/ppc64le
provenance: false
tags: swaggerapi/swagger-ui:unstable