Push image to Dockerhub instead of the private registry #3

Merged
bustikiller merged 1 commits from push-dockerhub into main 2024-11-02 09:20:01 +00:00

View File

@ -13,12 +13,11 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to the private Docker registry - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ secrets.PRIVATE_REGISTRY_HOST }} username: ${{ secrets.DOCKERHUB_USERNAME }}
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with: