Skip to content

Commit

Permalink
Try to fix the image build
Browse files Browse the repository at this point in the history
  • Loading branch information
nelhage committed Nov 12, 2023
1 parent bf4ce26 commit fa845c5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa845c5

Please sign in to comment.