update ci actions

This commit is contained in:
Michael Woods 2021-06-10 20:23:02 -04:00
parent 51237e2d95
commit df45a32113
2 changed files with 10 additions and 8 deletions

View File

@ -24,11 +24,14 @@ jobs:
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v3.3.0
uses: docker/metadata-action@v3
with:
images: michaelwoods/onstar2mqtt
tag-sha: true
tag-schedule: weekly
tags: |
type=schedule,pattern=weekly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
@ -44,12 +47,12 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to DockerHub
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}

View File

@ -13,10 +13,9 @@ jobs:
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v3.3.0
uses: docker/metadata-action@v3
with:
images: michaelwoods/onstar2mqtt
tag-sha: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
@ -28,7 +27,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to DockerHub
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true