diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7fed28c..b8ce1d2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,8 +14,8 @@ on: - LICENSE jobs: - push_to_registries: - name: Push Docker image to multiple registries + push_to_dockerhub: + name: Push Docker image to dockerhub runs-on: ubuntu-latest permissions: packages: write @@ -31,30 +31,12 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Log in to Quay Container registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - registry: quay.io - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - - - name: Log in to GitHub Container registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v3 with: - images: | - ${{ github.repository }} - quay.io/${{ github.repository }} - ghcr.io/${{ github.repository }} + images: ${{ github.repository }} + - name: Build and push Docker images uses: docker/build-push-action@v2 with: @@ -69,6 +51,7 @@ jobs: echo ::set-output name=PROJECT_NAME::${GITHUB_REF#refs/*/} echo ::set-output name=PROJECT_BRANCH::${GITHUB_REF#refs/heads/} echo ::set-output name=PROJECT_TAG::${GITHUB_REF#refs/tags/} + - name: Create Release id: create_release uses: ncipollo/release-action@v1 @@ -76,8 +59,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} body: | Pull image: - * `docker pull ghcr.io/sentoz/kafka-connect-restart:${{ steps.env.outputs.PROJECT_TAG }}` - * `docker pull quay.io/sentoz/kafka-connect-restart:${{ steps.env.outputs.PROJECT_TAG }}` - * `docker pull docker.io/sentoz/kafka-connect-restart:${{ steps.env.outputs.PROJECT_TAG }}` + * `docker pull docker.io/anvaari/connector-guardian:${{ steps.env.outputs.PROJECT_TAG }}` draft: false prerelease: false \ No newline at end of file