Skip to content

Commit

Permalink
chore: update dependencies and nightly workflow
Browse files Browse the repository at this point in the history
jef committed Jun 13, 2021

Verified

This commit was signed with the committer’s verified signature.
jef Jef LeCompte
1 parent e4a267f commit 3b43732
Showing 6 changed files with 527 additions and 492 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.2.0
node-version: 16.3.0
- name: Setup build cache
uses: actions/cache@v2
with:
14 changes: 14 additions & 0 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
@@ -4,9 +4,23 @@ on:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
check-date:
name: Build and release Docker image
runs-on: ubuntu-latest
outputs:
should-run: ${{ steps.code-change.outputs.should-run }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check if code has changed with 24 hours
id: code-change
run: >
[[ $(git rev-list --after="24 hours" --first-parent HEAD) ]] && echo "::set-output name=should-run::true"
build-release:
name: Build and release Docker image
runs-on: ubuntu-latest
needs: check-date
if: needs.check-date.outputs.should-run == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v2
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.2.0
16.3.0
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.2.0-alpine3.13 AS builder
FROM node:16.3.0-alpine3.13 AS builder

LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant"

@@ -16,7 +16,7 @@ COPY test/ test/
RUN npm run compile
RUN npm prune --production

FROM node:16.2.0-alpine3.13
FROM node:16.3.0-alpine3.13

RUN apk add --no-cache chromium

Loading

0 comments on commit 3b43732

Please sign in to comment.