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

View File

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