Skip to content

ci(docker): build and publish unstable docker image #10491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/docker-build-push-unstable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
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@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_SB_USERNAME }}
password: ${{ secrets.DOCKERHUB_SB_PASSWORD }}

- name: Build docker image and push
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v6,linux/arm64,linux/386,linux/ppc64le
provenance: false
tags: swaggerapi/swagger-ui:unstable