Docker-Runit/.github/workflows/marshall.yml
2023-03-01 14:51:48 +01:00

52 lines
1.4 KiB
YAML

name: Build Marshall
on:
push:
paths:
- 'marshall/**'
pull_request:
branches:
- '!dependabot/**'
workflow_run:
workflows:
- Lint Docker Files
branches: [ 'master', 'feature/**' ]
types:
- completed
workflow_dispatch:
jobs:
build:
name: "Build Marshall"
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- uses: docker/login-action@v2
name: Login to Github Container Registry
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
- name: Setup Marshall
run: |
git rev-parse --short HEAD > marshall/marshall_version
date '+%Y-%m-%d %H:%M:%S' > marshall/marshall_build_date
hostname > marshall/marshall_build_host
- uses: docker/build-push-action@v3
name: Build & Push
with:
context: marshall
platforms: linux/amd64,linux/arm64
pull: true
push: true
tags: |
benzine/marshall:latest
gone/marshall:latest