Skip to content

Commit

Permalink
Merge pull request nelhage#70 from nelhage/fix-build
Browse files Browse the repository at this point in the history
Try to fix the image build
  • Loading branch information
nelhage authored Nov 12, 2023
2 parents bf4ce26 + fa845c5 commit 534beb1
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 534beb1

Please sign in to comment.