2020-12-02 19:14:52 +00:00
|
|
|
name: release
|
2020-12-02 20:52:43 +00:00
|
|
|
|
2020-12-02 19:13:11 +00:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
jobs:
|
|
|
|
push_to_registry:
|
2020-12-02 20:52:43 +00:00
|
|
|
name: release - build, push
|
2020-12-02 19:13:11 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
2021-05-12 05:31:36 +00:00
|
|
|
uses: actions/checkout@v2.3.4
|
2020-12-02 20:52:43 +00:00
|
|
|
|
|
|
|
- name: Docker meta
|
|
|
|
id: docker_meta
|
2021-05-26 05:34:08 +00:00
|
|
|
uses: crazy-max/ghaction-docker-meta@v3.3.0
|
2020-12-02 20:52:43 +00:00
|
|
|
with:
|
|
|
|
images: michaelwoods/onstar2mqtt
|
|
|
|
tag-sha: true
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
2021-05-12 05:31:34 +00:00
|
|
|
uses: docker/setup-qemu-action@v1.1.0
|
2020-12-02 20:52:43 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
2021-05-12 05:31:40 +00:00
|
|
|
uses: docker/login-action@v1.9.0
|
2020-12-02 19:13:11 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-12-02 21:18:46 +00:00
|
|
|
- name: Push to DockerHub
|
2021-05-12 05:31:43 +00:00
|
|
|
uses: docker/build-push-action@v2.4.0
|
2020-12-02 20:52:43 +00:00
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|