From fa845c5877403a9f8f66ab2ad4fdba675c4e999a Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Sat, 11 Nov 2023 16:47:55 -0800 Subject: [PATCH] Try to fix the image build --- .github/workflows/main.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 271190e..c047b05 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,22 +26,18 @@ jobs: ./scripts/dev/check-license build-image: runs-on: ubuntu-latest - env: - GHCR_TOKEN: ${{secrets.GHCR_TOKEN}} steps: - uses: actions/checkout@v2 - name: Login to GitHub Container Registry - if: env.GHCR_TOKEN - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build docker image run: | docker build -t "ghcr.io/nelhage/llama:$GITHUB_SHA" . - name: Push docker image - if: env.GHCR_TOKEN run: | docker push "ghcr.io/nelhage/llama:$GITHUB_SHA" - name: Tag "latest" docker container