-
Notifications
You must be signed in to change notification settings - Fork 64
57 lines (49 loc) · 2.06 KB
/
image-publish-branch.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow will create images for api-layer services
# This workflow is used to expose build-conformant-images.yml in a way that doesn't give users the option to release.
name: Image publish branch
on:
workflow_dispatch:
inputs:
service:
description: 'Enter the service for which to create an image.'
type: choice
options:
- all
- zaas-service
- gateway-service
- discovery-service
- api-catalog-services
- caching-service
required: true
default: 'all'
jobs:
build-services:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/setup
- name: Build service for image
if: ${{ github.event.inputs.service != 'all' }}
run: ./gradlew ${{ github.event.inputs.service }}:build
- name: Build all services for images
if: ${{ github.event.inputs.service == 'all' }}
run: ./gradlew clean build -x test
- uses: ./.github/actions/teardown
publish-images:
needs:
- build-services
uses: zowe/api-layer/.github/workflows/[email protected]
with:
service: ${{ github.event.inputs.service }}
forceNoRelease: true
secrets:
registry-user: ${{ secrets.ARTIFACTORY_X_USERNAME }}
registry-password: ${{ secrets.ARTIFACTORY_X_PASSWORD }}
redhat-registry-user: ${{ secrets.REDHAT_DEVELOPER_USER }}
redhat-registry-password: ${{ secrets.REDHAT_DEVELOPER_PASSWORD }}
zlinux-host: ${{ secrets.ZLINUX_HOST }}
zlinux-ssh-user: ${{ secrets.ZLINUX_SSH_USER }}
zlinux-ssh-key: ${{ secrets.ZLINUX_SSH_KEY }}
zlinux-ssh-passphrase: ${{ secrets.ZLINUX_SSH_PASSPHRASE }}