Skip to content

Pm/display version from GitHub #400

Pm/display version from GitHub

Pm/display version from GitHub #400

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Create and publish a docker images to github
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-www:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Build www
run: |
cd http-gateway
make build-www
- name: Upload www
uses: actions/upload-artifact@v3
with:
name: www
path: http-gateway/web/build
retention-days: 1
build-and-publish-image-www:
needs: build-www
strategy:
fail-fast: false
matrix:
include:
- name: http-gateway
directory: http-gateway
file: http-gateway/Dockerfile
- name: bundle
directory: bundle
file: bundle/Dockerfile
uses: ./.github/workflows/build-publish-cfg.yaml
with:
name: ${{ matrix.name }}
directory: ${{ matrix.directory }}
file: ${{ matrix.file }}
www-name: www
www-build-dir: http-gateway/web/build
build-and-publish-image:
strategy:
fail-fast: false
matrix:
include:
- name: resource-aggregate
directory: resource-aggregate
file: .tmp/docker/resource-aggregate/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: resource-directory
directory: resource-directory
file: .tmp/docker/resource-directory/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: coap-gateway
directory: coap-gateway
file: .tmp/docker/coap-gateway/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: cloud2cloud-connector
directory: cloud2cloud-connector
file: .tmp/docker/cloud2cloud-connector/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: cloud2cloud-gateway
directory: cloud2cloud-gateway
file: .tmp/docker/cloud2cloud-gateway/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: certificate-authority
directory: certificate-authority
file: .tmp/docker/certificate-authority/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: grpc-gateway
directory: grpc-gateway
file: .tmp/docker/grpc-gateway/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: identity-store
directory: identity-store
file: .tmp/docker/identity-store/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: mock-oauth-server
directory: test/oauth-server
file: .tmp/docker/mock-oauth-server/Dockerfile
template-file: tools/docker/Dockerfile.in
- name: test-cloud-server
directory: test/cloud-server
file: test/cloud-server/Dockerfile
- name: cert-tool
directory: tools/cert-tool
file: tools/cert-tool/Dockerfile
- name: nats-server-config-reloader
directory: tools/nats-server-config-reloader
file: tools/nats-server-config-reloader/Dockerfile
# coap-gateway builded by Golang 1.19.4 has an issue with TLS handshake.
# This issue is reproducible with real devices that connect to AWS.
# This seems to be caused by the device's old mbedtls library:
# https://github.com/Mbed-TLS/mbedtls/tree/d81c11b8ab61fd5b2da8133aa73c5fe33a0633eb
- name: coap-gateway-go1-18
directory: coap-gateway
file: tools/docker/Dockerfile.go1.18
uses: ./.github/workflows/build-publish-cfg.yaml
with:
name: ${{ matrix.name }}
directory: ${{ matrix.directory }}
file: ${{ matrix.file }}
template-file: ${{ matrix.template-file }}