actions maintenance

This commit is contained in:
Niccolo Borgioli 2023-04-27 09:36:33 +02:00
parent 5817fd19b1
commit be0d523d90
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
2 changed files with 10 additions and 11 deletions

View File

@ -4,21 +4,20 @@ on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
- 'v*.*.*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
install: true
- name: Docker Labels
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v4
with:
images: cupcakearmy/cryptgeon
tags: |
@ -26,12 +25,12 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true

View File

@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version-file: '.nvmrc'
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
@ -29,7 +29,7 @@ jobs:
- name: Run your tests
run: npm test
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results