Skip to content

Commit 86a6c42

Browse files
author
Ryoga Saito
committedNov 14, 2023
GitHub Actionsファイルを追加した
1 parent 41c3968 commit 86a6c42

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 

‎.github/workflows/build.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and publish ictsc-discord-bot Docker image
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build-and-publish:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Sign in to GitHub Packages
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push Docker image
27+
uses: docker/build-push-action@v5
28+
with:
29+
context: .
30+
push: false
31+
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}

0 commit comments

Comments
 (0)
Please sign in to comment.