|
|
@ -11,14 +11,18 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup checkout
|
|
|
|
- name: Setup checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
|
|
- name: Setup NodeJS v12
|
|
|
|
- name: Setup NodeJS v12
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
node-version: 16
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn install
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check for syntax errors
|
|
|
|
- name: Check for syntax errors
|
|
|
|
run: yarn test-build
|
|
|
|
run: yarn test-build
|
|
|
|
|
|
|
|
|
|
|
|
- name: ESlint check
|
|
|
|
- name: ESlint check
|
|
|
|
run: yarn lint
|
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
|
|
|
@ -28,18 +32,22 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Set up QEMU
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build Dockerfile and push
|
|
|
|
- name: Build Dockerfile and push
|
|
|
|
id: docker_build
|
|
|
|
id: docker_build
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: guusvanmeerveld/portfolio:latest
|
|
|
|
tags: guusvanmeerveld/portfolio:latest
|
|
|
|
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
|
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
|
|
|