Skip to content

Commit

Permalink
Merge pull request #38 from ictsc/add-github-actions
Browse files Browse the repository at this point in the history
GitHub Actionsファイルを追加した
  • Loading branch information
proelbtn authored Nov 16, 2023
2 parents 41c3968 + addf1fd commit 138e9cf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and publish ictsc-discord-bot Docker image

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Sign in to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}

0 comments on commit 138e9cf

Please sign in to comment.