diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 3a31962..062aefa 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - fix-workflow jobs: build-and-push: @@ -16,12 +17,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Login to GHCR + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} # or use your PAT: secrets.GHCR_PAT + - name: Build and push uses: docker/build-push-action@v2 with: context: . push: true tags: ghcr.io/redisventures/arxivchatguru:${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }} - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file