diff --git a/.github/workflows/mailfix_build_push.yaml b/.github/workflows/mailfix_build_push.yaml new file mode 100644 index 00000000..f67ce04c --- /dev/null +++ b/.github/workflows/mailfix_build_push.yaml @@ -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 .