This repository was archived by the owner on May 27, 2025. It is now read-only.
Bump commons-io:commons-io from 2.7 to 2.14.0 in /transcoder-handler #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build docker transcoder-handler | |
| on: | |
| push: | |
| paths: | |
| - 'transcoder-handler/**' | |
| jobs: | |
| build: | |
| defaults: | |
| run: | |
| working-directory: transcoder-handler | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 13 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 1.13 | |
| - name: Build Maven | |
| run: mvn -B package -Dmaven.test.skip=true | |
| - name: Dockerhub login | |
| run: echo ${{ secrets.REGISTRY_PASSWORD }} | docker login -u ${{ secrets.REGISTRY_USER }} --password-stdin | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: crazy-max/[email protected] | |
| with: | |
| buildx-version: latest | |
| - name: Available platforms | |
| run: echo ${{ steps.buildx.outputs.platforms }} | |
| - name: Docker Buildx (push) | |
| run: | | |
| docker buildx build \ | |
| --platform linux/amd64,linux/arm64 \ | |
| --output "type=image,push=true" \ | |
| --tag "elastictranscoder/transcoder-handler:${GITHUB_SHA::8}" \ | |
| --file Dockerfile . | |
| - name: Docker Check Manifest | |
| if: always() && startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| docker run --rm mplatform/mquery ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }} | |
| - name: Clear | |
| if: always() && startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| rm -f ${HOME}/.docker/config.json |