From 6ab27978f0d630e86b7cc3d9db37de329979a25e Mon Sep 17 00:00:00 2001 From: aceberg <1502200+aceberg@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:05:42 +0700 Subject: [PATCH] Dev Action upd2 --- .github/workflows/dev-docker-io.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-docker-io.yml b/.github/workflows/dev-docker-io.yml index 64d1981..d2ef3b7 100644 --- a/.github/workflows/dev-docker-io.yml +++ b/.github/workflows/dev-docker-io.yml @@ -25,11 +25,18 @@ jobs: # username: ${{ secrets.DOCKER_USERNAME }} # password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and Push Docker Image to Github - uses: mr-smithers-excellent/docker-build-push@v6 + - name: Login to GHCR + uses: docker/login-action@v3 with: - image: ${{ env.IMAGE_NAME }} - tags: ${{ env.TAGS }} registry: ghcr.io - username: ${{ secrets.GHCR_USERNAME }} - password: ${{ secrets.GHCR_TOKEN }} \ No newline at end of file + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64 + push: true + tags: | + ghcr.io/${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAGS }} \ No newline at end of file