This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (66 loc) · 2.18 KB
/
docker-images.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
name: Docker Images
on:
push:
branches:
- main
- develop
- release-*
pull_request:
branches:
- main
- develop
env:
DOCKER_COMPOSE_COMMAND: docker-compose -f base.awx.yml -f base.consul.yml -f base.keycloak.yml -f base.vault.yml -f slm.yml -f catalog.yml -f config-exporter.yml -f build.yml
jobs:
build-and-push-awx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build base docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-fixed-files
- name: Build AWX Web docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-web
- name: Build AWX Web No JWT docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-web-no-jwt
- name: Build AWX Task docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-task
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Push docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND push awx-web awx-web-no-jwt awx-task
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
service:
- common-database-mariadb
- awx-postgres
- awx-init
- consul
- consul-init
- keycloak
- keycloak-init
- vault
- vault-init
- config-exporter
steps:
- uses: actions/checkout@v3
- name: Build docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND build --no-cache ${{ matrix.service }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Push docker image
working-directory: ./compose
run: $DOCKER_COMPOSE_COMMAND push ${{ matrix.service }}