From b494ad9f9e213ae060effab71a6afdfde58834f7 Mon Sep 17 00:00:00 2001 From: Yimura <24669514+Yimura@users.noreply.github.com> Date: Mon, 22 May 2023 16:17:27 +0200 Subject: [PATCH] feat(Actions): push to ghcr.io and Docker Hub --- .github/workflows/build-container.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 9c12c5c..eb2febf 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -16,11 +16,11 @@ jobs: uses: actions/checkout@v3 - - name: Login to Docker Hub + name: Login to ghcr.io uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.actor }} + username: yimura password: ${{ secrets.PACKAGE_WRITE_TOKEN }} - @@ -28,4 +28,18 @@ jobs: uses: docker/build-push-action@v4 with: push: true - tags: ghcr.io/yimura/lancache-prefill-cron:latest \ No newline at end of file + tags: ghcr.io/yimura/lancache-prefill-cron:latest + + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: yimura + password: ${{ secrets.DOCKER_TOKEN }} + + - + name: Build and push container + uses: docker/build-push-action@v4 + with: + push: true + tags: yimura/lancache-prefill-cron:latest \ No newline at end of file