Skip to content

Commit d8089de

Browse files
authored
Add GitHub Actions workflow for AudioMediaChecker build
1 parent d4dc2b6 commit d8089de

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build AudioMediaChecker
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'AudioMediaChecker/**'
8+
- '.github/workflows/build-audiomedia-checker.yml'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: docker/setup-buildx-action@v3
18+
19+
- uses: docker/login-action@v3
20+
with:
21+
username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
24+
- uses: docker/build-push-action@v5
25+
with:
26+
context: ./AudioMediaChecker
27+
platforms: linux/amd64,linux/arm64
28+
push: true
29+
tags: |
30+
${{ secrets.DOCKERHUB_USERNAME }}/audiomedia-checker:latest
31+
${{ secrets.DOCKERHUB_USERNAME }}/audiomedia-checker:${{ github.sha }}
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)