Skip to content

Commit b2ecdd4

Browse files
authored
Fix docker release (#817)
* fix docker release * undo pull_request triggering a test job
1 parent 152492b commit b2ecdd4

File tree

2 files changed

+39
-70
lines changed

2 files changed

+39
-70
lines changed

.github/workflows/docker-release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Docker Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
releaseVersion:
6+
description: 'Release version to tag (e.g., 2.1.0). Will be used for release artifacts and git tag.'
7+
required: true
8+
developmentVersion:
9+
description: 'Next development version (e.g., 2.2.0-SNAPSHOT). Will be used for continuing development after release.'
10+
required: true
11+
env:
12+
OSS_USERNAME: ${{ secrets.OSS_USERNAME }}
13+
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }}
14+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
15+
jobs:
16+
docker:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
with:
21+
ref: ${{ github.event.inputs.releaseVersion }}
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
- name: Login to DockerHub
27+
uses: docker/login-action@v3
28+
with:
29+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
30+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
31+
- name: Build & Push Docker image
32+
uses: docker/build-push-action@v6
33+
with:
34+
context: .
35+
push: true
36+
platforms: linux/amd64,linux/arm64
37+
tags: |
38+
openapitools/openapi-diff:${{ github.event.inputs.releaseVersion }}
39+
openapitools/openapi-diff:latest

.github/workflows/release.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)