mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: contact-buildx
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
|
- "[0-9]+.[0-9]+.[0-9]+a[0-9]+"
|
|
- "[0-9]+.[0-9]+.[0-9]+b[0-9]+"
|
|
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push-contact:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: clone https://github.com/pdxlocations/contact.git
|
|
uses: actions/checkout@master
|
|
with:
|
|
name: pdxlocations/contact
|
|
repository: pdxlocations/contact
|
|
path: ./contact
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@master
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@master
|
|
-
|
|
name: Login to DockerHub
|
|
uses: docker/login-action@master
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Get current commit
|
|
run: |
|
|
echo version=$(git -C ./contact rev-parse HEAD) >> $GITHUB_ENV
|
|
-
|
|
name: Build and push pdxlocations/contact
|
|
uses: docker/build-push-action@master
|
|
with:
|
|
context: ./contact
|
|
file: ./contact/Dockerfile
|
|
platforms: linux/amd64,linux/arm64,linux/armhf
|
|
push: true
|
|
tags: pdxlocations/contact:latest,pdxlocations/contact:${{ env.version }}
|