mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
35 lines
880 B
YAML
35 lines
880 B
YAML
on:
|
|
release:
|
|
types: [created]
|
|
|
|
name: Build docker images
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
# platforms: linux/386,linux/amd64,linux/arm,linux/arm64
|
|
platforms: linux/386,linux/amd64,linux/arm64
|
|
build-args: |
|
|
"VERSION=${{ github.ref_name }}"
|
|
push: true
|
|
tags: axllent/mailpit:latest,axllent/mailpit:${{ github.ref_name }}
|