File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 36
36
tags : ${{ env.TEST_IMAGE_TAG }}
37
37
outputs : type=docker,dest=/tmp/${{ env.TEMP_IMAGE_NAME }}.tar
38
38
39
+ - name : Move cache
40
+ run : |
41
+ rm -rf /tmp/.buildx-cache
42
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
43
+
39
44
- name : Load built image
40
45
run : docker load -i /tmp/${{ env.TEMP_IMAGE_NAME }}.tar
41
46
@@ -47,14 +52,20 @@ jobs:
47
52
- name : Run Tests
48
53
run : docker compose run --rm -e RAILS_ENV=test web bin/rails spec
49
54
50
- - name : Push Docker Image (if on main)
55
+ - name : Login to DockerHub
56
+ uses : docker/login-action@v3
57
+ with :
58
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
59
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
60
+
61
+ - name : Push Docker Image (if main branch)
51
62
if : github.ref == 'refs/heads/main'
52
63
uses : docker/build-push-action@v5
53
64
with :
54
65
context : .
55
66
push : true
56
67
target : deployment
57
- tags : ${{ env.TEST_IMAGE_TAG }}
68
+ tags : xavius/wave-connect: ${{ github.sha }}, xavius/wave-connect:latest
58
69
# repository: your-docker-hub-username/your-repository-name
59
70
60
71
deploy :
You can’t perform that action at this time.
0 commit comments