Skip to content

Commit 53150bd

Browse files
committed
feat: ci
1 parent 62549d2 commit 53150bd

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: build
2+
3+
permissions:
4+
contents: read
5+
packages: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: docker/setup-buildx-action@v2
17+
18+
- id: metadata
19+
uses: docker/metadata-action@v4
20+
with:
21+
images: ghcr.io/berkeleymt/discord-bot
22+
flavor: latest=true
23+
24+
- uses: docker/login-action@v2
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- uses: docker/build-push-action@v4
31+
with:
32+
tags: ${{ steps.metadata.outputs.tags }}
33+
labels: ${{ steps.metadata.outputs.tags }}
34+
cache-from: type=gha
35+
cache-to: type=gha,mode=max
36+
push: true

0 commit comments

Comments
 (0)