Skip to content

Commit

Permalink
Merge pull request #81 from ilyarolf/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ilyarolf authored Dec 3, 2024
2 parents 2fce14e + 9ed67b4 commit 4a61b95
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Push Docker Image

on:
push:
branches: [master, feature/sqlalchemy-sqlcipher]
branches: [master, develop]

jobs:
build-and-push:
Expand All @@ -19,11 +19,22 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Determine Docker image tag
id: vars
run: |
if [[ "${GITHUB_REF_NAME}" == "develop" ]]; then
echo "tag=${{ secrets.DOCKERHUB_USERNAME }}/aiogram-shop-bot-develop:latest" >> $GITHUB_ENV
else
echo "tag=${{ secrets.DOCKERHUB_USERNAME }}/aiogram-shop-bot:latest" >> $GITHUB_ENV
fi
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aiogram-shop-bot:latest
- name: clean all
run: rm -rf ./*
tags: ${{ env.tag }}

- name: Clean all
run: rm -rf ./*

0 comments on commit 4a61b95

Please sign in to comment.