Skip to content

Commit

Permalink
Merge pull request #10 from hiddenshadow21/RavenDB-9167
Browse files Browse the repository at this point in the history
RavenDB-9167 Create multiarch manifest
  • Loading branch information
gregolsky authored Jul 5, 2024
2 parents 945d7b9 + febb049 commit 061a897
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,33 @@ jobs:
& .\publish-nanoserver.ps1 -Repo ${{ env.DOCKER_REPO }} -WinVer ${{ matrix.data.winVer }}
docker logout
working-directory: docker

multiarch:
needs: [linux, windows]
name: Create docker multiarch manifest
runs-on: ubuntu-latest
steps:
- name: Get ravendb majorminor version & set repo
shell: bash
run: |
v=$(echo ${{ inputs.version }} | cut -d. -f1,2)
echo "RAVEN_MAJOR_MINOR=$v" >> $GITHUB_ENV
[[ ${{ env.IS_NIGHTLY }} == true ]] && DOCKER_REPO="$DOCKER_REPO-nightly"
echo "DOCKER_REPO=$DOCKER_REPO" >> $GITHUB_ENV
- name: Login to docker
shell: pwsh
run: |
docker login -u ${{ env.DOCKER_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
- uses: actions/checkout@v3
with:
repository: '${{ inputs.github_repository }}'
ref: "v${{ env.RAVEN_MAJOR_MINOR }}"

- name: Publish multiarch
shell: pwsh
run: |
& .\publish-multiarch.ps1 -Repo ${{ env.DOCKER_REPO }}
docker logout
working-directory: docker

0 comments on commit 061a897

Please sign in to comment.