Skip to content

Commit 40ee00a

Browse files
ivorisoutdoorsMatt Loberg
authored andcommitted
ci: add Action workflow to build to DockerHub
1 parent f9c0e25 commit 40ee00a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule: # Run everyday
8+
- cron: "0 0 * * *"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: docker/setup-qemu-action@v1
16+
- uses: docker/setup-buildx-action@v1
17+
- uses: docker/login-action@v1
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
- uses: docker/build-push-action@v2
22+
with:
23+
push: true
24+
tags: articulate/http-to-https:latest
25+
platforms: linux/amd64
26+
cache-from: type=registry,ref=articulate/http-to-https:latest
27+
cache-to: type=inline

0 commit comments

Comments
 (0)