-
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (82 loc) · 2.77 KB
/
continuous-delivery.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Continuous Delivery
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
paths:
- 'apps/**'
- 'Dockerfile'
- '.github/workflows/continuous-delivery.yml'
- 'package.json'
jobs:
PublishAcryss:
name: Publish Acryss image to container registries
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Acryss Docker image
uses: docker/[email protected]
with:
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
context: .
target: acryss-runner
tags: ghcr.io/skyra-project/acryss:latest
cache-from: type=gha
cache-to: type=gha,mode=max
PublishNayre:
name: Publish Nayre image to container registries
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Nayre Docker image
uses: docker/[email protected]
with:
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
context: .
target: nayre-runner
tags: ghcr.io/skyra-project/nayre:latest
cache-from: type=gha
cache-to: type=gha,mode=max
PublishFrontend:
name: Publish Frontend image to container registries
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Frontend Docker image
uses: docker/[email protected]
with:
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
context: .
target: frontend-runner
tags: ghcr.io/skyra-project/nayre-web:latest
cache-from: type=gha
cache-to: type=gha,mode=max