-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (28 loc) · 963 Bytes
/
prod_build.yml
File metadata and controls
36 lines (28 loc) · 963 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
name: Productive / Deployment Build
on:
push:
branches:
- 'master'
env:
ANGULAR_CONFIGURATION: production
jobs:
prodBuild:
runs-on: ubuntu-latest
steps:
# Checkout the source code
- name: 🛎️ Checkout
uses: actions/checkout@v6
# Restores the cache if it exists.
- name: ⛏ Restore docker image from cache
uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- name: 🔐 Login to Docker Hub
uses: docker/login-action@v4
with:
registry: registry.cevi.tools
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 🏗️ Build the stack
run: docker compose -f docker-compose.yml -f docker-compose.prod-latest.yml build
- name: 🚀 Push containers to registry
run: docker compose -f docker-compose.yml -f docker-compose.prod-latest.yml push