Skip to content

Commit

Permalink
chore: update dependencies and nightly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jef committed Jun 13, 2021
1 parent e4a267f commit 3b43732
Show file tree
Hide file tree
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
Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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"

Expand All @@ -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

Expand Down
Loading

0 comments on commit 3b43732

Please sign in to comment.