Skip to content

Merge pull request #7 from 102ch/fix_mute_notification #22

Merge pull request #7 from 102ch/fix_mute_notification

Merge pull request #7 from 102ch/fix_mute_notification #22

Workflow file for this run

name: Build Container
defaults:
run:
working-directory: ./
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: set tag
run: |-
export TIMESTAMP=$(date +%s)
export SHA=$(echo ${{ github.sha }} | cut -c1-7)
echo "IMAGE_TAG=$SHA-$TIMESTAMP" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/102ch/thuuwa-tuuchi-bot:latest,ghcr.io/102ch/thuuwa-tuuchi-bot:${{ env.IMAGE_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max