From df45a32113f9d931e0bd525ae59f5ce4bb08e920 Mon Sep 17 00:00:00 2001 From: Michael Woods Date: Thu, 10 Jun 2021 20:23:02 -0400 Subject: [PATCH] update ci actions --- .github/workflows/ci.yml | 13 ++++++++----- .github/workflows/release.yml | 5 ++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52f8418..6930d72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7281139..47ef442 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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