mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +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'
|
||||
needs: [ test_e2e, test_backend, test_frontend ]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/arm/v7
|
||||
steps:
|
||||
- name: Init
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -194,11 +187,9 @@ jobs:
|
|||
- name: Run
|
||||
run: |
|
||||
export COMMIT_SHA=`git rev-parse --short HEAD`
|
||||
cd docker
|
||||
docker build --platform ${{ matrix.platform }} --tag machines/filestash:latest .
|
||||
docker tag machines/filestash:latest machines/filestash:$COMMIT_SHA
|
||||
docker push machines/filestash:latest
|
||||
docker push machines/filestash:$COMMIT_SHA
|
||||
docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 \
|
||||
-t machines/filestash:latest -t machines/filestash:$COMMIT_SHA \
|
||||
--push ./docker/
|
||||
|
||||
deploy:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
|
|
|
|||
Loading…
Reference in a new issue