Skip to content

Add RobotoMono medium for text area display #10

Add RobotoMono medium for text area display

Add RobotoMono medium for text area display #10

name: docker build publish read2burn
on:
workflow_dispatch:
inputs:
tags:
description: "Please provide a git tag value, e.g. v1.0b3. It should be the same version as the read2burn app with added build id."
required: true
type: string
default: "v1.0b3"
push:
tags:
- "v*"
jobs:
build_and_publish:
name: docker build publish image
runs-on: ubuntu-latest
strategy:
matrix:
language: [ 'javascript' ]
steps:
- name: Declare some variables
id: vars
shell: bash
run: |
echo "build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
echo "build_id=$(echo ${{ github.event.inputs.tags }} | awk -F 'b' '{print $(NF)}')" >> $GITHUB_OUTPUT
- name: Checkout Repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
- name: Set up Docker Buildkit env
uses: docker/setup-buildx-action@v2
- name: Extract metadata (tags, labels) for tagging Docker Image
id: meta
uses: docker/metadata-action@v4
with:
images: 52north/read2burn
labels: |
"org.opencontainers.image.url=https://github.com/52north/"
"org.opencontainers.image.source=https://github.com/52north/read2burn"
"org.opencontainers.image.licenses=Apache-2.0"
"org.opencontainers.image.title=read2burn by wemove forked by 52n"
"org.opencontainers.image.description=transport passwords more secure by email"
"org.opencontainers.image.authors=Jürrens, Eike Hinderk <[email protected]>"
"org.opencontainers.image.vendor=52°North Spatial Information Research GmbH"
tags: |
type=match,pattern=v(.*),group=1,value=${{ github.event.inputs.tags }}
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
cache-from: type=gha
cache-to: type=gha
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_COMMIT=${{ github.sha }}
BUILD_DATE=${{ steps.vars.outputs.build_date }}
BUILD_ID=${{ steps.vars.outputs.build_id }}