Skip to content

2. Create Tag & Build/Deploy to Test #122

2. Create Tag & Build/Deploy to Test

2. Create Tag & Build/Deploy to Test #122

Workflow file for this run

name: Deploy main to test
on:
# push:
# branches: [ "main" ]
workflow_dispatch:
jobs:
build-static:
runs-on: ubuntu-latest
name: Build & Deploy Docker Static images
environment: test
steps:
- name: checkout code
uses: actions/checkout@v3
- name: build static
uses: redhat-actions/buildah-build@v2
with:
context: .
layers: true
image: test-static
tags: latest ${{ github.sha }}
labels: |
app=test-drivebc
containerfiles: ./compose/frontend/StaticBuild
build-args: |
API_HOST=${{ vars.API_HOST }}
BASE_MAP=${{ vars.BASE_MAP }}
MAP_STYLE=${{ vars.MAP_STYLE }}
HIGHWAY_LAYER=${{ vars.HIGHWAY_LAYER }}
OPEN511_LAYER=${{ vars.OPEN511_LAYER }}
REPLAY_THE_DAY=${{ vars.REPLAY_THE_DAY }}
ROUTE_PLANNER=${{ vars.ROUTE_PLANNER }}
ROUTE_PLANNER_KEY=${{ vars.ROUTE_PLANNER_KEY }}
GEOCODER_HOST=${{ vars.GEOCODER_HOST }}
GEOCODER_API_AUTH_KEY=${{ vars.GEOCODER_API_AUTH_KEY }}
DEBUG_BUILD=true
- name: push to registry
uses: redhat-actions/push-to-registry@v2.7
with:
image: test-static
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.BUILDER_USERNAME }}
password: ${{ secrets.BUILDER_TOKEN }}
build-backend:
runs-on: ubuntu-latest
name: Build & Deploy Docker Backend images
environment: test
steps:
- name: checkout code
uses: actions/checkout@v3
- name: build backend
uses: redhat-actions/buildah-build@v2
with:
image: test-django
tags: latest ${{ github.sha }}
labels: |
app=test-drivebc
containerfiles: ./compose/backend/Dockerfile
build-args:
DEBUG_BUILD=true
- name: push to registry
uses: redhat-actions/push-to-registry@v2.7
with:
image: test-django
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.BUILDER_USERNAME }}
password: ${{ secrets.BUILDER_TOKEN }}