Browse Source
Merge pull request #2719 from morlay/master
added workflow for buildx
pull/2728/head
Max Lv
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
25 additions and
0 deletions
-
.github/workflows/build.yml
|
@ -0,0 +1,25 @@ |
|
|
|
|
|
name: build |
|
|
|
|
|
|
|
|
|
|
|
on: |
|
|
|
|
|
push: |
|
|
|
|
|
paths: |
|
|
|
|
|
- ".github/workflows/build.yml" |
|
|
|
|
|
- 'Changes' |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
|
build: |
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
steps: |
|
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
- uses: crazy-max/ghaction-docker-buildx@v3 |
|
|
|
|
|
with: |
|
|
|
|
|
buildx-version: v0.4.1 |
|
|
|
|
|
- run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin |
|
|
|
|
|
- run: git submodule update --init |
|
|
|
|
|
- run: | |
|
|
|
|
|
docker buildx build \ |
|
|
|
|
|
--push \ |
|
|
|
|
|
--platform=linux/arm64,linux/amd64 \ |
|
|
|
|
|
-f=docker/alpine/Dockerfile \ |
|
|
|
|
|
-t=${{ github.repository }} \ |
|
|
|
|
|
. |