mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 12:55:41 +01:00
feature (arm): multi arch build
This commit is contained in:
parent
e0407c83cf
commit
f6eec2886b
1 changed files with 3 additions and 12 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -172,13 +172,6 @@ jobs:
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
needs: [ test_e2e, test_backend, test_frontend ]
|
needs: [ test_e2e, test_backend, test_frontend ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
platform:
|
|
||||||
- linux/amd64
|
|
||||||
- linux/arm64
|
|
||||||
- linux/arm/v7
|
|
||||||
steps:
|
steps:
|
||||||
- name: Init
|
- name: Init
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
@ -194,11 +187,9 @@ jobs:
|
||||||
- name: Run
|
- name: Run
|
||||||
run: |
|
run: |
|
||||||
export COMMIT_SHA=`git rev-parse --short HEAD`
|
export COMMIT_SHA=`git rev-parse --short HEAD`
|
||||||
cd docker
|
docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 \
|
||||||
docker build --platform ${{ matrix.platform }} --tag machines/filestash:latest .
|
-t machines/filestash:latest -t machines/filestash:$COMMIT_SHA \
|
||||||
docker tag machines/filestash:latest machines/filestash:$COMMIT_SHA
|
--push ./docker/
|
||||||
docker push machines/filestash:latest
|
|
||||||
docker push machines/filestash:$COMMIT_SHA
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue