We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62549d2 commit 53150bdCopy full SHA for 53150bd
1 file changed
.github/workflows/build.yaml
@@ -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
26
+ registry: ghcr.io
27
+ username: ${{ github.actor }}
28
+ password: ${{ secrets.GITHUB_TOKEN }}
29
30
+ - uses: docker/build-push-action@v4
31
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