File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Images to GHCR
1+ name : Deploy Images to Docker Hub
22
33on :
44 push :
@@ -17,16 +17,22 @@ jobs:
1717 working-directory : ' .'
1818 steps :
1919 - name : ' Checkout GitHub Action'
20- uses : actions/checkout@v4
21-
22- - name : ' Login to GitHub Container Registry'
20+ uses : actions/checkout@v3
21+
22+ - name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@v3
24+
25+ - name : " Login to DockerHub"
2326 uses : docker/login-action@v3
2427 with :
25- registry : ghcr.io
26- username : ${{github.actor}}
27- password : ${{secrets.GITHUB_TOKEN}}
28-
29- - name : ' Build Telegram Bot Image'
30- run : |
31- docker build . --tag ghcr.io/curiousdima/pardon-my-english:latest
32- docker push ghcr.io/curiousdima/pardon-my-english:latest
28+ username : ${{ secrets.DOCKER_USERNAME }}
29+ password : ${{ secrets.DOCKER_PASSWORD }}
30+
31+ - name : " Build and Push Telegram Bot"
32+ uses : docker/build-push-action@v5
33+ with :
34+ context : .
35+ file : ./Dockerfile
36+ push : true
37+ tags : curiousdima/pardonmyenglish:latest
38+ platforms : linux/amd64, linux/arm64
You can’t perform that action at this time.
0 commit comments