Skip to content

node version 20.6.1 #27

node version 20.6.1

node version 20.6.1 #27

Workflow file for this run

name: Back-end delivery
on:
push:
branches: [main, master]
env:
FRONT_END_DOMAIN: ${{ secrets.FRONT_END_DOMAIN }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
node-version: [20.6.1]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
cd back-end
npm ci
npm run build --if-present
- name: Run tests
run: |
cd back-end
npm test
dockerize:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:back-end"
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: bloombar/data-storage-example-app-back-end:latest