-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (33 loc) · 1004 Bytes
/
build.yml
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
name: buildx
on:
push:
branches:
- development
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Docker login
run: echo '${{ secrets.DOCKERHUB_PASS }}' | docker login --username userbuilder --password-stdin
- name: Checkout
uses: actions/checkout@v1
- name: run
run: pwd
- name: run
run: npm i
- name: run
run: npm test
- name: run
run: ls -la
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/[email protected]
with:
version: latest
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- env:
TAG: staging
name: Run Buildx
run: |
docker buildx build --build-arg COMMIT=$(git rev-parse --short HEAD) --platform linux/s390x,linux/arm/v7,linux/arm64,linux/amd64 -t instathings/modbus2mqtt:${{env.TAG}} --file ./docker/Dockerfile --no-cache --push ./