Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iljavaleev committed Jul 11, 2024
1 parent cc62736 commit 67b98df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
ports: [ "5672:5672" ]
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
platforms: linux/amd64
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -82,7 +82,7 @@ jobs:
needs: build_and_push
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
- name: Copy infra files to server
uses: appleboy/scp-action@v0.1.7
with:
Expand Down
8 changes: 4 additions & 4 deletions infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
- services

django:
platform: linux/arm64
platform: linux/amd64
image: valeevilja/admin_panel:latest
container_name: admin_panel
env_file:
Expand All @@ -87,7 +87,7 @@ services:
- services

bot:
platform: linux/arm64
platform: linux/amd64
image: valeevilja/edubot:latest
container_name: bot
restart: always
Expand All @@ -103,7 +103,7 @@ services:
- services

celery:
platform: linux/arm64
platform: linux/amd64
image: valeevilja/edubot:latest
container_name: celery_bot
restart: always
Expand All @@ -118,7 +118,7 @@ services:
- services

django-celery-beat:
platform: linux/arm64
platform: linux/amd64
image: valeevilja/admin_panel:latest
container_name: django_celery_bot_beat
restart: always
Expand Down

0 comments on commit 67b98df

Please sign in to comment.