|
47 | 47 | IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-order |
48 | 48 | steps: |
49 | 49 | - uses: actions/checkout@v2 |
| 50 | + - name: Determine image tag from Release (${{ github.ref }}) |
| 51 | + if: ${{ github.event_name == 'release' }} |
| 52 | + run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV |
| 53 | + - name: Determine image tag from manual trigger (${{ inputs.imageTag }}) |
| 54 | + if: ${{ github.event_name == 'workflow_dispatch' }} |
| 55 | + run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV |
50 | 56 | - name: Docker Login |
51 | 57 | |
52 | 58 | with: |
|
64 | 70 | IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-shipment |
65 | 71 | steps: |
66 | 72 | - uses: actions/checkout@v2 |
| 73 | + - name: Determine image tag from Release (${{ github.ref }}) |
| 74 | + if: ${{ github.event_name == 'release' }} |
| 75 | + run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV |
| 76 | + - name: Determine image tag from manual trigger (${{ inputs.imageTag }}) |
| 77 | + if: ${{ github.event_name == 'workflow_dispatch' }} |
| 78 | + run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV |
67 | 79 | - name: Docker Login |
68 | 80 | |
69 | 81 | with: |
|
81 | 93 | IMAGE_NAME: ghcr.io/tomkerkhove/microservices-with-api-management-services-product |
82 | 94 | steps: |
83 | 95 | - uses: actions/checkout@v2 |
| 96 | + - name: Determine image tag from Release (${{ github.ref }}) |
| 97 | + if: ${{ github.event_name == 'release' }} |
| 98 | + run: echo "IMAGE_TAG=${{ github.ref }}" >> $GITHUB_ENV |
| 99 | + - name: Determine image tag from manual trigger (${{ inputs.imageTag }}) |
| 100 | + if: ${{ github.event_name == 'workflow_dispatch' }} |
| 101 | + run: echo "IMAGE_TAG=${{ inputs.imageTag }}" >> $GITHUB_ENV |
84 | 102 | - name: Docker Login |
85 | 103 | |
86 | 104 | with: |
|
0 commit comments