Skip to content

Commit

Permalink
Merge pull request #4 from Orenoid/feature/openapi
Browse files Browse the repository at this point in the history
devops: fix docker actions and drop unnecessary steps
  • Loading branch information
Orenoid authored Sep 10, 2024
2 parents 380e2cb + f4fea01 commit 4f03723
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,18 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Build Docker Image
run: |
docker build -t telegram-account-bot -f bot.Dockerfile .
docker tag telegram-account-bot ${{ env.DOCKER_USERNAME }}/telegram-account-bot
docker build -t telegram-account-bot-api -f api.Dockerfile .
docker tag telegram-account-bot-api ${{ env.DOCKER_USERNAME }}/telegram-account-bot-api
- name: Push Bot Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
path: ./bot.Dockerfile
file: ./bot.Dockerfile
push: true
tags: ${{ env.DOCKER_USERNAME }}/telegram-account-bot:latest

- name: Push Api Docker Image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
path: ./api.Dockerfile
file: ./api.Dockerfile
push: true
tags: ${{ env.DOCKER_USERNAME }}/telegram-account-bot-api:latest

0 comments on commit 4f03723

Please sign in to comment.