-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (43 loc) · 1.45 KB
/
Copy pathproduction.yml
File metadata and controls
59 lines (43 loc) · 1.45 KB
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
53
54
55
56
57
58
59
name: Pipeline (production test)
on:
push:
branches:
- main
- develop
env:
REGISTRY: ${{ secrets.DOCKERHUB_USERNAME }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache composer
uses: actions/cache@v2
with:
path: api/vendor
key: composer-${{ hashFiles('composer.lock') }}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Inject branch slug
uses: rlespinasse/github-slug-action@v2.x
- name: Set image tag
run: echo "IMAGE_TAG=${{ env.GITHUB_REF_SLUG }}-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
- name: Docker up
run: make docker-up
- name: Composer install
run: make composer-install
- name: Copy .env
run: make env
- name: Generate key
run: make key
- name: Storage link create
run: make storage
- name: Generate passport
run: make passport
- name: Build
run: make build
- name: Push build
run: make push