Skip to content

Update abusiveUserChecker.ts #63

Update abusiveUserChecker.ts

Update abusiveUserChecker.ts #63

Workflow file for this run

name: 'Publish Docker image'
on:
push:
branches: ['main']
jobs:
push_to_registries:
name: 'Push Docker image to multiple registries'
runs-on: 'ubuntu-latest'
permissions:
packages: 'write'
contents: 'read'
strategy:
matrix:
include:
- dockerfile: './services/bot/Dockerfile'
images: |
benricheson101/fish-bot
ghcr.io/${{ github.actor }}/fish-bot
- dockerfile: './services/abusive-user-checker/Dockerfile'
images: |
benricheson101/fish-abusive-user-service
ghcr.io/${{ github.actor }}/fish-abusive-user-service
- dockerfile: './services/domain-scraper/Dockerfile'
images: |
benricheson101/fish-domain-scraper-service
ghcr.io/${{ github.actor }}/fish-domain-scraper-service
- dockerfile: './docker/prometheus/Dockerfile'
images: |
benricheson101/fish-prometheus
ghcr.io/${{ github.actor }}/fish-prometheus
- dockerfile: './docker/grafana/Dockerfile'
images: |
benricheson101/fish-grafana
ghcr.io/${{ github.actor }}/fish-grafana
steps:
- name: 'Check out the repo'
uses: 'actions/checkout@v2'
- name: 'Log in to Docker Hub'
uses: 'docker/#-action@v1'
with:
username: '${{ secrets.DOCKER_USERNAME }}'
password: '${{ secrets.DOCKER_PASSWORD }}'
- name: 'Log in to the Container registry'
uses: 'docker/#-action@v1'
with:
registry: 'ghcr.io'
username: '${{ github.actor }}'
password: '${{ secrets.GITHUB_TOKEN }}'
- name: 'Extract metadata (tags, labels) for Docker'
id: 'meta'
uses: 'docker/metadata-action@v3'
with:
images: '${{ matrix.images }}'
- name: 'Build and push Docker images'
uses: 'docker/build-push-action@v2'
with:
context: '.'
file: '${{ matrix.dockerfile }}'
push: true
tags: '${{ steps.meta.outputs.tags }}'
labels: '${{ steps.meta.outputs.labels }}'