Skip to content

Commit

Permalink
update workflow repo owner tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhutcherson committed Nov 2, 2023
1 parent 590eead commit d7aa063
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix-workflow

jobs:
build-and-push:
Expand All @@ -12,20 +13,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/arxivchatguru:${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }}
tags: ghcr.io/${{ github.repository_owner | toLower }}/arxivchatguru:${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }}

0 comments on commit d7aa063

Please sign in to comment.