Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Aug 4, 2023
1 parent 227aa65 commit af7d867
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: psf/black@stable
with:
args: ". --check"
16 changes: 6 additions & 10 deletions .github/workflows/build_docker.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,24 @@ name: Build Docker Image
on:
push:
branches:
- 'dev'
- "dev"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: docker/Dockerfile
platforms: linux/amd64
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,27 @@ name: Build Docker Image

on:
push:
branches:
- 'main'
tags:
- "v*.*.*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: membermatters/membermatters:latest
tags: membermatters/membermatters:latest,membermatters/membermatters:${{github.ref_name}}
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install modules
working-directory: ./src-frontend
run: npm i
Expand Down

0 comments on commit af7d867

Please sign in to comment.