Skip to content

build(deps): bump the dependencies group with 5 updates (#249) #524

build(deps): bump the dependencies group with 5 updates (#249)

build(deps): bump the dependencies group with 5 updates (#249) #524

name: Docker
on:
push:
pull_request:
env:
REGISTRY: ghcr.io
jobs:
build-and-push-chombot:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
if: github.ref == 'refs/heads/master'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/riichi/chombot
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: chombot.dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-and-push-chombot-kcc:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
if: github.ref == 'refs/heads/master'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/riichi/chombot-kcc
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: chombot-kcc.dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}