update ci actions
This commit is contained in:
parent
51237e2d95
commit
df45a32113
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -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' }}
|
||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user