Commit 8aab2ae Itay Melo Krämer
committed
File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ schedule :
5
+ # build every first of the month
6
+ - cron : ' 0 0 1 * *'
7
+ push :
8
+ workflow_dispatch :
9
+
10
+
11
+ jobs :
12
+ docker :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ -
16
+ name : Set up QEMU
17
+ uses : docker/setup-qemu-action@v2
18
+ -
19
+ name : Set up Docker Buildx
20
+ uses : docker/setup-buildx-action@v2
21
+ - name : Get current date
22
+ id : date
23
+ run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
24
+ -
25
+ name : Login to Github
26
+ uses : docker/login-action@v2
27
+ with :
28
+ registry : ghcr.io
29
+ username : ${{ github.actor }}
30
+ password : ${{ secrets.GITHUB_TOKEN }}
31
+ -
32
+ name : Login to DockerHub
33
+ uses : docker/login-action@v2
34
+ with :
35
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
36
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
37
+ -
38
+ name : Build and push
39
+ id : docker_build
40
+ uses : docker/build-push-action@v4
41
+ with :
42
+ push : ${{ github.ref == 'refs/heads/main' }}
43
+ tags : ghcr.io/andersundsehr/searchforcompose,andersundsehr/searchforcompose
You can’t perform that action at this time.
0 commit comments