Skip to content

Commit

Permalink
ci: depot (attempt 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Dec 14, 2024
1 parent 1b27d11 commit 62d0a06
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish
on:
push:
branches: [ main ]
env:
REGISTRY: ghcr.io
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -21,7 +19,7 @@ jobs:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push hyperion-proxy
Expand All @@ -34,8 +32,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:latest
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:${{ github.sha }}
ghcr.io/${{ github.repository }}/hyperion-proxy:latest
ghcr.io/${{ github.repository }}/hyperion-proxy:${{ github.sha }}
- name: Build and push tag
uses: depot/build-push-action@v1
with:
Expand All @@ -46,5 +44,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.REGISTRY }}/${{ github.repository }}/tag:latest
${{ env.REGISTRY }}/${{ github.repository }}/tag:${{ github.sha }}
ghcr.io/${{ github.repository }}/tag:latest
ghcr.io/${{ github.repository }}/tag:${{ github.sha }}

0 comments on commit 62d0a06

Please sign in to comment.