Commit 6f5aab8 1 parent 9e13028 commit 6f5aab8 Copy full SHA for 6f5aab8
File tree 1 file changed +19
-8
lines changed
1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
postgres-backup :
11
- runs-on : self-hosted
11
+ runs-on : ubuntu-latest
12
12
steps :
13
- - uses : TooMuch4U/actions-clean@v2.1
14
13
- uses : actions/checkout@v3
15
14
16
- - run : |
17
- docker build -f ./Dockerfile \
18
- -t twirapp/postgres-backup:latest \
19
- --cache-from type=gha,scope=twir-postgres-backup \
20
- --cache-to type=gha,mode=max,scope=twir-postgres-backup .
15
+ - name : Set up Docker Buildx
16
+ uses : docker/setup-buildx-action@v3
21
17
22
- docker push twirapp/postgres-backup:latest
18
+ - name : Login to Twir registry
19
+ uses : docker/login-action@v3
20
+ with :
21
+ registry : registry.twir.app
22
+ username : ${{ secrets.DOCKER_TWIR_LOGIN }}
23
+ password : ${{ secrets.DOCKER_TWIR_PASSWORD }}
24
+
25
+ - name : Build docker image
26
+ uses : docker/build-push-action@v5
27
+ with :
28
+ context : .
29
+ file : ./Dockerfile
30
+ push : true
31
+ tags : registry.twir.app/twirapp/${{ env.app }}:latest
32
+ cache-from : type=gha
33
+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments