Skip to content

Commit

Permalink
Create mailfix_build_push.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed Jun 19, 2024
1 parent 3345345 commit 28ae388
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/mailfix_build_push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Mailfix Docker Build and Push

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Docker image
env:
IMAGE_NAME: kindleear/mailfix
TAG_LATEST: latest
run: |
docker buildx build --push --platform=linux/amd64,linux/arm64 -t $IMAGE_NAME:$TAG_LATEST -f docker/postfix/Dockerfile .

0 comments on commit 28ae388

Please sign in to comment.