apprise-api/.github/workflows/build.yml

43 lines
1.0 KiB
YAML
Raw Normal View History

name: Build Apprise API Image
on:
push:
branches: master
tags:
- v*
jobs:
buildx:
runs-on: ubuntu-latest
steps:
2021-02-24 01:00:32 +01:00
- name: Checkout
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:
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
2021-02-24 01:00:32 +01:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
2021-02-24 01:00:32 +01:00
- name: Login to DockerHub
uses: docker/login-action@v1
with:
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: .
2023-07-07 03:38:15 +02:00
platforms: linux/amd64,linux/arm64
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 }}