mailhog-docker/.forgejo/workflows/build.yml

31 lines
675 B
YAML
Raw Normal View History

2024-11-05 16:19:48 +00:00
name: ci
2024-11-05 16:43:24 +00:00
on: [push]
2024-11-05 16:19:48 +00:00
jobs:
docker:
2024-11-05 16:43:24 +00:00
runs-on: ubuntu-latest
2024-11-05 16:19:48 +00:00
steps:
2024-11-05 16:43:24 +00:00
-
name: Checkout
2024-11-05 16:35:39 +00:00
uses: actions/checkout@v4
2024-11-05 16:43:24 +00:00
-
name: Set up QEMU
2024-11-05 16:19:48 +00:00
uses: docker/setup-qemu-action@v3
2024-11-05 16:43:24 +00:00
-
name: Set up Docker Buildx
2024-11-05 16:19:48 +00:00
uses: docker/setup-buildx-action@v3
2024-11-05 16:43:24 +00:00
-
name: Login to Docker Hub
2024-11-05 16:19:48 +00:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
2024-11-05 16:43:24 +00:00
-
name: Build and push
2024-11-05 16:19:48 +00:00
uses: docker/build-push-action@v6
with:
2024-11-05 16:35:39 +00:00
context: .
2024-11-05 16:19:48 +00:00
push: true
2024-11-05 16:43:24 +00:00
tags: richarvey/mailhog:latest