update github action Dockerfile

This commit is contained in:
aichy126 2023-06-12 17:58:24 +08:00
parent 0217125f6f
commit 7e1ca07065
3 changed files with 3 additions and 17 deletions

View File

@ -40,7 +40,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ./.github/Dockerfile
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}

View File

@ -39,20 +39,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./.github/Dockerfile
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -51,20 +51,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./.github/Dockerfile
file: ./Dockerfile
tags: answerdev/answer:${{ inputs.tag_name }}
labels: ${{ steps.meta.outputs.labels }}