-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (30 loc) · 810 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (30 loc) · 810 Bytes
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
name: CI
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
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