diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5e86a59..b0ed26f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,15 +67,12 @@ jobs: ship: needs: build + environment: build-ship runs-on: ubuntu-latest permissions: packages: write - env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - steps: - name: Checkout code uses: actions/checkout@v4 @@ -88,16 +85,24 @@ jobs: id: metadata uses: docker/metadata-action@v4 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: | + proseim/prose-app-web + ghcr.io/${{ github.repository }} tags: | type=ref,event=tag type=raw,value=${{ needs.build.outputs.tag }} type=raw,value=latest + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to the container registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }}