2020-08-30 23:33:21 +02:00
|
|
|
name: Build Apprise API Image
|
2020-08-30 23:30:17 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-30 23:33:21 +02:00
|
|
|
branches: master
|
2020-08-30 23:30:17 +02:00
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildx:
|
2021-02-24 01:39:02 +01:00
|
|
|
# Fixing build of ubuntu for rust/cryptography compatibility
|
2021-02-24 01:00:32 +01:00
|
|
|
runs-on: ubuntu-18.04
|
2020-08-30 23:30:17 +02:00
|
|
|
steps:
|
2021-02-24 01:00:32 +01:00
|
|
|
- name: Checkout
|
2020-08-30 23:30:17 +02:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-02-24 01:00:32 +01:00
|
|
|
- name: Docker meta
|
|
|
|
id: docker_meta
|
|
|
|
uses: crazy-max/ghaction-docker-meta@v1
|
|
|
|
with:
|
2021-02-24 01:39:02 +01:00
|
|
|
images: ${{ secrets.DOCKER_IMAGE }}
|
|
|
|
tag-edge: true
|
2021-02-24 01:00:32 +01:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
2020-08-30 23:30:17 +02:00
|
|
|
|
2021-02-24 01:00:32 +01:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2020-08-30 23:30:17 +02:00
|
|
|
|
2021-02-24 01:00:32 +01:00
|
|
|
- name: Login to DockerHub
|
2020-08-30 23:30:17 +02:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
2021-02-24 01:39:02 +01:00
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2021-02-24 01:00:32 +01:00
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
2021-02-24 01:39:02 +01:00
|
|
|
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v6,linux/arm/v7
|
2021-02-24 01:00:32 +01:00
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|