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
57 changes: 57 additions & 0 deletions .github/workflows/controlplane-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Controlplane release

on:
push:
tags:
- 'controlplane@*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CONTAINER_NAME: controlplane

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to Github Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.CONTAINER_NAME }}
tags: |
type=ref,event=branch
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# use custom value instead of git tag
type=match,pattern=[a-zA-Z-_]+@(.*),group=1

- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
file: controlplane/Dockerfile
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache,mode=max
4 changes: 2 additions & 2 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Build and publish Docker images

on:
push:
branches:
- 'main'
pull_request:
tags-ignore:
- '**'

env:
REGISTRY: ghcr.io
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/otelcollector-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Otelcollector release

on:
push:
tags:
- 'otelcollector@*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CONTAINER_NAME: otelcollector

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to Github Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.CONTAINER_NAME }}
tags: |
type=ref,event=branch
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# use custom value instead of git tag
type=match,pattern=[a-zA-Z-_]+@(.*),group=1

- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
file: controlplane/Dockerfile
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache,mode=max
57 changes: 57 additions & 0 deletions .github/workflows/studio-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Studio release

on:
push:
tags:
- 'studio@*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CONTAINER_NAME: controlplane

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to Github Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.CONTAINER_NAME }}
tags: |
type=ref,event=branch
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# use custom value instead of git tag
type=match,pattern=[a-zA-Z-_]+@(.*),group=1

- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
file: controlplane/Dockerfile
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ env.container_name }}:buildcache,mode=max
2 changes: 1 addition & 1 deletion connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wundergraph/cosmo-connect",
"version": "0.0.1",
"version": "0.0.0",
"description": "TypeScript Connect client for WunderGraph Cosmo",
"scripts": {
"build": "del dist && tsc"
Expand Down
12 changes: 12 additions & 0 deletions otelcollector/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "otelcollector",
"version": "0.0.0",
"private": true,
"description": "Placeholder package to simplify versioning and releasing with lerna.",
"keywords": ["wundergraph", "otelcollector", "cosmo"],
"author": {
"name": "WunderGraph Maintainers",
"email": "info@wundergraph.com"
},
"license": "Apache-2.0"
}
12 changes: 12 additions & 0 deletions router/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "router",
"version": "0.0.0",
"private": true,
"description": "Placeholder package to simplify versioning and releasing with lerna.",
"keywords": ["wundergraph", "router", "cosmo"],
"author": {
"name": "WunderGraph Maintainers",
"email": "info@wundergraph.com"
},
"license": "Apache-2.0"
}
2 changes: 1 addition & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wundergraph/cosmo-shared",
"version": "0.1.0",
"version": "0.0.0",
"description": "Shared code between WunderGraph Cosmo packages",
"main": "./dist/index.js",
"type": "module",
Expand Down