Skip to content

Commit

Permalink
ci: fix github action files
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulike committed Apr 5, 2024
1 parent d71fae4 commit 75c0fda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/admin-docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ jobs:
secrets: inherit
with:
docker-build-target: admin
docker-file-path: ./Dockerfile
1 change: 0 additions & 1 deletion .github/workflows/blog-docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ jobs:
secrets: inherit
with:
docker-build-target: blog
docker-file-path: ./Dockerfile
15 changes: 7 additions & 8 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,27 @@ on:
docker-build-target:
required: true
type: string
docker-file-path:
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ${{ inputs.docker-file-path }}
file: ./Dockerfile
target: ${{ inputs.docker-build-target }}
platforms: linux/amd64,linux/arm64
push: true
Expand Down

0 comments on commit 75c0fda

Please sign in to comment.