diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 606684c..c3bc58b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -42,26 +42,3 @@ jobs: docker push subdirectory/subshell:${{ github.ref_name }} name: docker push dockerhub tag - - - name: Login to ghcr - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - run: | - docker tag subdirectory/subshell:${{ github.sha }} ghcr.io/${{ github.actor }}/subshell:${{ github.sha }} - docker push ghcr.io/${{ github.actor }}/subshell:${{ github.sha }} - name: docker push ghcr sha - - - run: | - docker tag subdirectory/subshell:${{ github.sha }} ghcr.io/${{ github.actor }}/subshell:latest - docker push ghcr.io/${{ github.actor }}/subshell:latest - if: github.ref == 'refs/heads/main' - name: docker push ghcr latest - - - run: | - docker tag subdirectory/subshell:${{ github.sha }} ghcr.io/${{ github.actor }}/subshell:${{ github.ref_name }} - docker push ghcr.io/${{ github.actor }}/subshell:${{ github.ref_name }} - name: docker push ghcr tag