-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (43 loc) · 1.28 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Docker CI
on:
push:
branches:
- master
- staging
jobs:
build:
runs-on: ubuntu-latest
steps:
# - name: Use Node.js 16.19.0
# uses: actions/setup-node@v3
# with:
# node-version: 16.19.0
# - run: npm run genrss
- uses: actions/checkout@v2
- name: Push image to AppVenture registry
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.nush.app
repository: appventure-website-v4
tags: latest
path: .
build_args: STATIC_URL=https://large.nush.app
- name: Check if static files changed
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
static:
- 'static-large/**'
- name: Push large static files image to AppVenture registry
uses: docker/build-push-action@v1
if: steps.filter.outputs.static == 'true'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.nush.app
repository: appventure-website-v4
tags: static-latest
path: ./static-large