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-11-08 08:02:51 +00:00
|
|
|
uses: actions/checkout@v2.4.0
|
2020-12-02 20:52:43 +00:00
|
|
|
|
|
|
|
- name: Docker meta
|
|
|
|
id: docker_meta
|
2021-06-11 00:23:02 +00:00
|
|
|
uses: docker/metadata-action@v3
|
2020-12-02 20:52:43 +00:00
|
|
|
with:
|
|
|
|
images: michaelwoods/onstar2mqtt
|
2021-06-11 14:35:58 +00:00
|
|
|
flavor: |
|
|
|
|
latest=true
|
2021-06-11 14:28:53 +00:00
|
|
|
tags: |
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
2020-12-02 20:52:43 +00:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2021-06-07 06:45:33 +00:00
|
|
|
uses: docker/setup-qemu-action@v1.2.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-06-11 00:23:02 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2020-12-02 20:52:43 +00:00
|
|
|
with:
|
2022-01-02 01:54:25 +00:00
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
2020-12-02 20:52:43 +00:00
|
|
|
push: true
|
|
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|