1313 version :
1414 runs-on : ubuntu-latest
1515 outputs :
16- tests-passed : ${{ steps.latest.outputs.version }}
16+ latest : ${{ steps.latest.outputs.version }}
1717 stable : ${{ steps.stable.outputs.version }}
1818 steps :
1919 - uses : ruby/setup-ruby@v1
2323 uses : actions/checkout@v4
2424 with :
2525 repository : discourse/discourse
26- ref : tests-passed
26+ ref : latest
2727 fetch-depth : 1
28- path : ' tests-passed '
28+ path : ' latest '
2929 - name : checkout stable
3030 uses : actions/checkout@v4
3131 with :
3434 fetch-depth : 1
3535 path : ' stable'
3636 - id : latest
37- working-directory : tests-passed
37+ working-directory : latest
3838 run : |
3939 version=$(ruby -r ./lib/version.rb -e "puts ::Discourse::VERSION::STRING")
4040 echo "version=$version"
@@ -49,14 +49,14 @@ jobs:
4949 push :
5050 strategy :
5151 matrix :
52- version : [tests-passed ,stable]
52+ version : [latest ,stable]
5353 os : [ubuntu-latest, ubuntu-24.04-arm]
5454 runs-on : ${{ matrix.os }}
5555 needs : version
5656 env :
5757 ARCH : ${{ matrix.os == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}
58- FLOATING_TAG : ${{ matrix.version == 'tests-passed ' && 'latest' || matrix.version }}-${{ matrix.os == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}
59- TAG : ${{ matrix.version == 'stable' && needs.version.outputs.stable || needs.version.outputs.tests-passed }}-${{ matrix.os == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}
58+ FLOATING_TAG : ${{ matrix.version == 'latest ' && 'latest' || matrix.version }}-${{ matrix.os == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}
59+ TAG : ${{ matrix.version == 'stable' && needs.version.outputs.stable || needs.version.outputs.latest }}-${{ matrix.os == 'ubuntu-24.04-arm' && 'arm64' || 'amd64' }}
6060 steps :
6161 - uses : actions/checkout@v4
6262 with :
@@ -110,10 +110,10 @@ jobs:
110110 docker manifest push ${{ env.DOCKER_REPO }}:stable
111111
112112 docker manifest create \
113- ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.tests-passed }} \
114- --amend ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.tests-passed }}-amd64 \
115- --amend ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.tests-passed }}-arm64
116- docker manifest push ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.tests-passed }}
113+ ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.latest }} \
114+ --amend ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.latest }}-amd64 \
115+ --amend ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.latest }}-arm64
116+ docker manifest push ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.latest }}
117117
118118 docker manifest create \
119119 ${{ env.DOCKER_REPO }}:${{ needs.version.outputs.stable }} \
0 commit comments