Browse Source

CI: updates

pull/686/head
Philip H. 1 year ago
parent
commit
8ea03d26ce
  1. 10
      .github/workflows/deploy-nightly.yml
  2. 10
      .github/workflows/deploy.yml
  3. 6
      .github/workflows/lint.yml

10
.github/workflows/deploy-nightly.yml

@ -10,18 +10,18 @@ jobs:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@main
with: with:
ref: production ref: production
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@master
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@master
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@master
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@ -31,7 +31,7 @@ jobs:
# Build & Publish # Build & Publish
- name: Build & Publish Docker Image - name: Build & Publish Docker Image
uses: docker/build-push-action@v3 uses: docker/build-push-action@master
with: with:
push: true push: true
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8

10
.github/workflows/deploy.yml

@ -12,18 +12,18 @@ jobs:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@main
with: with:
ref: production ref: production
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@master
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@master
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@master
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@ -33,7 +33,7 @@ jobs:
# Build & Publish # Build & Publish
- name: Build & Publish Docker Image - name: Build & Publish Docker Image
uses: docker/build-push-action@v3 uses: docker/build-push-action@master
with: with:
push: true push: true
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8

6
.github/workflows/lint.yml

@ -12,10 +12,10 @@ jobs:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@main
- uses: actions/setup-node@v3 - uses: actions/setup-node@main
with: with:
node-version: '18' node-version: 'lts/*'
- run: | - run: |
cd src cd src

Loading…
Cancel
Save