-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (33 loc) · 935 Bytes
/
next.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
name: CI (next)
#on:
# push:
# tags:
# - "[0-9]+.[0-9]+.[0-9]+"
# branches:
# - "**"
# pull_request:
# branches:
# - "**:**"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: ./.github/workflows/test.yml
with:
gemfile: Gemfile.next
build:
runs-on: ubuntu-latest
needs:
- test
if: contains('refs/heads/main', github.ref) || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/preview/') || startsWith(github.ref, 'refs/tags/')
env:
DOCKER_REPOSITORY: 'instedd/cdx'
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
steps:
- uses: actions/checkout@v3
- uses: ysbaddaden/ci-docker-builder@404e79d61e395349ca8c941d9eedbf79c0cba3df
with:
tag-suffix: "-next"
build-options: "--build-arg gemfile=Gemfile.next"