onstar2mqtt/.github/workflows/release.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2020-12-02 19:14:52 +00:00
name: release
2020-12-02 19:13:11 +00:00
on:
release:
types: [published]
jobs:
push_to_registry:
name: release - build, push
2020-12-02 19:13:11 +00:00
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2.3.4
- name: Docker meta
id: docker_meta
2021-06-11 00:23:02 +00:00
uses: docker/metadata-action@v3
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}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
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
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}