diff --git a/.drone.yml b/.drone.yml index 7ca69cf..0b79bbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,13 @@ kind: pipeline type: docker -name: deploy-image +name: test + +platform: + os: linux + arch: amd64 steps: - - name: test-build + - name: Test the newest commit image: node:16-alpine volumes: - name: cache @@ -14,7 +18,22 @@ steps: - yarn lint - yarn test-build - - name: build docker file and push to docker hub +volumes: + - name: cache + host: + path: /tmp/drone/cache/node_modules + +--- +kind: pipeline +type: docker +name: build-linux-amd64 + +platform: + os: linux + arch: amd64 + +steps: + - name: Build Dockerfile and push to Dockerhub image: plugins/docker settings: repo: guusvanmeerveld/portfolio @@ -23,8 +42,29 @@ steps: from_secret: docker_username password: from_secret: docker_password - -volumes: - - name: cache - host: - path: /tmp/drone/cache/node_modules \ No newline at end of file + +depends_on: + - test + +--- +kind: pipeline +type: docker +name: build-linux-amr64 + +platform: + os: linux + arch: arm64 + +steps: + - name: Build Dockerfile and push to Dockerhub + image: plugins/docker + settings: + repo: guusvanmeerveld/portfolio + tags: latest + username: + from_secret: docker_username + password: + from_secret: docker_password + +depends_on: + - test \ No newline at end of file