Skip to content

now also building on test branch #23

now also building on test branch

now also building on test branch #23

Workflow file for this run

# This workflow will build the containers for the frontend and backend
name: Docker Container Build
on:
push:
branches: [ "master", "mqtt-test"]
pull_request:
branches: [ "master" ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: metaSimulator
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/simulator
- name: Build and push simulator image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: "Simulator"
push: true
tags: ${{ steps.metaSimulator.outputs.tags }}
labels: ${{ steps.metaSimulator.outputs.labels }}
- name: Extract metadata (tags, labels) for Docker
id: metaFrontend
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/frontend
- name: Build and push frontend image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: "frontend"
push: true
tags: ${{ steps.metaFrontend.outputs.tags }}
labels: ${{ steps.metaFrontend.outputs.labels }}