-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 884 Bytes
/
ci.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/CD
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 1 * *'
jobs:
build:
name: CI/CD tag
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
tag: [ web8.2, web8.3 ]
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
TAG: ${{ matrix.tag }}
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: make build TAG=$TAG
- name: Start an instance of the container
run: make start TAG=$TAG
- name: Waiting for the healthcheck
run: sleep 15
- name: Testing image health
run: make test TAG=$TAG
- name: Publishing new image
if: ${{ success() }}
run: docker login -u="jeroeng" -p="$DOCKER_TOKEN" && docker push jeroeng/alpine-artisan:$TAG