From e760d42c2d0a0361a39c0d100f9823069dca1c35 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 27 Dec 2024 12:50:38 -0300 Subject: [PATCH] github(release): drop ghcr.io in favor of DockerHub --- .github/workflows/release.yml | 15 +++++---------- docker-compose.prod.yml | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d788271..c6c5527 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,6 @@ on: types: [created] env: - REGISTRY: ghcr.io IMAGE_NAME: wygiwyh jobs: @@ -13,20 +12,16 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - packages: write - attestations: write - id-token: write steps: - name: Checkout code uses: actions/checkout@v4 - - name: Log in to the Container registry + - name: Log in to Docker Hub uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -50,8 +45,8 @@ jobs: push: true provenance: false tags: | - ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest - ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} + ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest + ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} platforms: linux/amd64,linux/arm64 cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 79cc573..ef513f3 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,6 +1,6 @@ services: web: &django - image: ghcr.io/eitchtee/wygiwyh:latest + image: eitchtee/wygiwyh:latest container_name: ${SERVER_NAME} command: /start ports: