Skip to content

Commit 318f754

Browse files
committed
Merge branch 'main' into develop
2 parents 1f137e7 + 77114f5 commit 318f754

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: docker-build-development
2+
3+
env:
4+
dockerhub_repository: "kutt/kutt"
5+
dockerhub_tag: "development"
6+
7+
on:
8+
push:
9+
branches:
10+
- develop
11+
12+
jobs:
13+
dockerhub-build-push:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
name: Checkout
18+
uses: actions/checkout@v2
19+
-
20+
name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
-
23+
name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v1
25+
-
26+
name: Login to DockerHub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
-
32+
name: Build and push
33+
uses: docker/build-push-action@v2
34+
with:
35+
platforms: linux/amd64,linux/arm64
36+
context: .
37+
push: true
38+
tags: ${{ env.dockerhub_repository }}:${{ env.dockerhub_tag }}
39+
-
40+
name: Update repo description
41+
uses: peter-evans/dockerhub-description@v2
42+
with:
43+
username: ${{ secrets.DOCKERHUB_USERNAME }}
44+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
45+
repository: ${{ env.dockerhub_repository }}

0 commit comments

Comments
 (0)