🐛 feat: 디스코드 레이트리밋 방지 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Manager Bot | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
workflow_call: | |
env: | |
IMAGE_NAME: manager_bot | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- id: dockertag | |
name: Get Docker tag | |
uses: ASzc/change-string-case-action@v6 | |
with: | |
string: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest | |
- name: Log in to registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.dockertag.outputs.lowercase }} |