-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.44 KB
/
transcoder.yaml
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
name: Build docker transcoder
on:
push:
paths:
- 'transcoder/**'
jobs:
build:
defaults:
run:
working-directory: transcoder
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:${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