File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 branches :
77 - master
88jobs :
9- build :
10- name : Build
9+ docker :
10+ name : Publish images
1111 runs-on : ubuntu-latest
1212 steps :
13+ # build the JARs
1314 - uses : actions/checkout@v3
1415 with :
1516 fetch-depth : 0
2627 restore-keys : ${{ runner.os }}-m2
2728 - name : Build
2829 run : ./mvnw clean install -DskipTests=true
29- docker :
30- needs : build
31- runs-on : ubuntu-latest
32- steps :
33- - uses : actions/checkout@v4
34- with :
35- ref : ${{ github.event.inputs.releaseVersion }}
30+
31+ # docker workflow
3632 - name : Set up QEMU
3733 uses : docker/setup-qemu-action@v3
3834 - name : Set up Docker Buildx
@@ -52,15 +48,11 @@ jobs:
5248
5349 - name : Publish openapi-generator-online snapshot version
5450 if : github.ref_type != 'tag' # not tag (release)
55- working-directory : ./modules/openapi-generator-online
5651 run : |
57- pwd
58- ls -al
5952 docker buildx create --use
60- docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }} .
53+ docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }} ./modules/openapi-generator-online
6154 - name : Publish openapi-generator-online stable version
6255 if : github.ref_type == 'tag' # tagged (release)
63- working-directory : ./modules/openapi-generator-online
6456 run : |
6557 docker buildx create --use
6658 docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:latest -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:${{ github.ref_name }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:latest-release ./modules/openapi-generator-online
You can’t perform that action at this time.
0 commit comments