Skip to content

Commit

Permalink
ci: push Docker images to Docker hub instead of GH
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDecMeetsMore committed Sep 24, 2024
1 parent e12ddd2 commit fa1d958
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
ORG_NAME: ${{ github.repository_owner }}
IMAGE_NAME: ${{ github.event.repository.name }}

on:
push:
Expand Down Expand Up @@ -55,9 +55,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run migrations
run: |
Expand All @@ -70,8 +69,8 @@ jobs:
push: true
file: "./debian.Dockerfile"
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:latest
${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
# We don't use the Rust client for now
# To re-enable later
Expand Down

0 comments on commit fa1d958

Please sign in to comment.