Skip to content

Commit e7abe0c

Browse files
committed
Merge branch 'main' of github.com:CuriousDima/pardon-my-english
2 parents ccb457c + b1ab5de commit e7abe0c

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

‎.github/workflows/docker-image.yml‎

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Images to GHCR
1+
name: Deploy Images to Docker Hub
22

33
on:
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

0 commit comments

Comments
 (0)