Skip to content

🛠️ Remove unused command #9

🛠️ Remove unused command

🛠️ Remove unused command #9

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Create .env file
run: |
echo "MAIL_HOST=${{ secrets.MAIL_HOST }}" >> .env
echo "MAIL_PORT=${{ secrets.MAIL_PORT }}" >> .env
echo "MAIL_USERNAME=${{ secrets.MAIL_USERNAME }}" >> .env
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env
- name: Build and push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/mailfort:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/mailfort:latest