Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/build-base.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: build-base

on:
workflow_dispatch:
inputs:
baseImageTag:
description: 'semver image tag (1.0.0)'
type: string
required: true
push:
tags:
- 'base/v*'

env:
REGISTRY: docker.io
Expand Down Expand Up @@ -46,6 +43,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REPO }}
tags: |
type=sha
type=semver,pattern={{version}}

# Setup BuildX
# https://github.com/docker/setup-buildx-action
Expand All @@ -64,10 +64,7 @@ jobs:
context: .
push: ${{ github.event_name != 'pull_request' }}
file: ./base.Dockerfile
tags: |
${{ env.REPO }}:${{ github.sha }}
${{ env.REPO }}:${{ inputs.baseImageTag }}
${{ env.REPO }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REPO }}:latest
cache-to: type=registry,ref=${{ env.REPO }}:latest,mode=max
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:

tests:
name: Tests
runs-on: [self-hosted, Linux, x64]
# runs-on: [self-hosted, Linux, x64]
runs-on: ubuntu-latest
container: shivammathur/node:latest
permissions:
contents: read
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: release

on:
workflow_dispatch:
release:
types: [ published ]
push:
tags:
- 'v*'
tags-ignore:
- 'base/v*'

env:
REGISTRY: docker.io
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ARG GIT_TAG
ENV GIT_COMMIT=${GIT_COMMIT}
ENV GIT_TAG=${GIT_TAG}
ENV OTEL_SERVICE_VERSION=${GIT_TAG}
ENV OTEL_RESOURCE_ATTRIBUTES="service.instance.id=${OTEL_SERVICE_INSTANCE_ID},\
service.version=${OTEL_SERVICE_VERSION}"

WORKDIR /app

Expand Down