Fix env files handling in service offering wizard #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Stack | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- release-* | |
env: | |
DOCKER_COMPOSE_COMMAND: docker-compose -f base.aas.yml -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 monitoring.yml -f build.yml | |
jobs: | |
build-and-push-awx: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build base docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-fixed-files | |
- name: Build AWX Web docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-web | |
- name: Build AWX Web No JWT docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-web-no-jwt | |
- name: Build AWX Task docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND build --no-cache awx-task | |
- name: Login to Docker Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Push docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND push awx-web awx-web-no-jwt awx-task | |
build-and-push: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
service: | |
- common-database-mariadb | |
# - aas-broker | |
- awx-postgres | |
- awx-init | |
- consul | |
- consul-init | |
- keycloak | |
- keycloak-init | |
- vault | |
- vault-init | |
- prometheus | |
- config-exporter | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND build --no-cache ${{ matrix.service }} | |
- name: Login to Docker Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Push docker image | |
working-directory: ./stack/compose | |
run: $DOCKER_COMPOSE_COMMAND push ${{ matrix.service }} |