diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/docker-image-release.yml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/.github/workflows/docker-image-release.yml b/.github/workflows/docker-image-release.yml index 46c953b..1067b69 100644 --- a/.github/workflows/docker-image-release.yml +++ b/.github/workflows/docker-image-release.yml @@ -25,28 +25,28 @@ jobs: - # # Log in to Docker Hub - # - name: Log in to Docker Hub - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKER_USERNAME }} - # password: ${{ secrets.DOCKER_PASSWORD }} - - # Log in to GitHub Container Registry - - name: Login to GitHub Container Registry - uses: docker/login-action@v3.3.0 + # Log in to Docker Hub + - name: Log in to Docker Hub + uses: docker/login-action@v2 with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + # # Log in to GitHub Container Registry + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v3.3.0 + # with: + # registry: ghcr.io + # username: ${{ github.repository_owner }} + # password: ${{ secrets.GITHUB_TOKEN }} # Build and tag Docker image - name: Build Docker image run: | - docker build -t ${{ secrets.DOCKER_USERNAME }}/my-go-app:${{ github.sha }} . + docker build -t ${{ secrets.DOCKER_USERNAME }}/donetick:${{ github.sha }} . # Push Docker image - name: Push Docker image run: | - docker push ${{ secrets.DOCKER_USERNAME }}/my-go-app:${{ github.sha }} + docker push ${{ secrets.DOCKER_USERNAME }}/donetick:${{ github.sha }} |