Skip to content

fix(dashboard): do not render selected tag in alerts if target was de… #911

fix(dashboard): do not render selected tag in alerts if target was de…

fix(dashboard): do not render selected tag in alerts if target was de… #911

Workflow file for this run

name: Build and push docker images
on:
push:
branches:
- main
workflow_dispatch:
jobs:
backend:
runs-on: ubuntu-latest
strategy:
matrix:
application:
[
api,
bots,
# dota,
eval,
eventsub,
integrations,
parser,
scheduler,
timers,
watched,
websockets,
tokens,
emotes-cacher,
events,
ytsr,
migrations,
]
steps:
- uses: actions/checkout@v3
- name: Prepare
id: prep
run: |
TAG=$(echo $GITHUB_SHA | head -c7)
IMAGE=${{ secrets.DOCKER_REGISTRY }}/twir/${{ matrix.application }}
echo ::set-output name=tagged_image::${IMAGE}:${TAG}
echo ::set-output name=tag::${TAG}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-single-buildx
- name: Login to Container Registry
uses: docker/login-action@v1.14.1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build ${{ matrix.application }}
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
context: .
push: true
file: ./Dockerfile
target: ${{ matrix.application }}
tags: |
${{ secrets.DOCKER_REGISTRY }}/twir/${{ matrix.application }}:latest
frontend:
runs-on: ubuntu-latest
strategy:
matrix:
application:
[
dashboard,
landing,
overlays,
public,
]
steps:
- uses: actions/checkout@v3
- name: Prepare
id: prep
run: |
TAG=$(echo $GITHUB_SHA | head -c7)
IMAGE=${{ secrets.DOCKER_REGISTRY }}/twir/${{ matrix.application }}
echo ::set-output name=tagged_image::${IMAGE}:${TAG}
echo ::set-output name=tag::${TAG}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-single-buildx
- name: Login to Container Registry
uses: docker/login-action@v1.14.1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build ${{ matrix.application }}
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
context: .
push: true
file: ./Dockerfile
target: ${{ matrix.application }}
tags: |
${{ secrets.DOCKER_REGISTRY }}/twir/${{ matrix.application }}:latest
postgres-backup:
name: Build postgres-backup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare
id: prep
run: |
TAG=$(echo $GITHUB_SHA | head -c7)
IMAGE=${{ secrets.DOCKER_REGISTRY }}/twir/postgres-backup
echo ::set-output name=tagged_image::${IMAGE}:${TAG}
echo ::set-output name=tag::${TAG}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-single-buildx
- name: Login to Container Registry
uses: docker/login-action@v1.14.1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build postgres-backup docker
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
context: .
push: true
file: ./tools/pg-backup/Dockerfile
tags: |
${{ secrets.DOCKER_REGISTRY }}/twir/postgres-backup:latest