Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: publish to ghcr.io registry #64

Open
rcarmo opened this issue Mar 24, 2023 · 3 comments
Open

Suggestion: publish to ghcr.io registry #64

rcarmo opened this issue Mar 24, 2023 · 3 comments
Labels
enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Comments

@rcarmo
Copy link

rcarmo commented Mar 24, 2023

Hi! I use your image and have been having trouble getting it from Docker Hub. I thought I'd share my workflow file that automatically builds and pushes to the GitHub registry using your own tokens:

# .github/workflows/build-ghcr-docker-image.yml
name: Build Docker Image upon new tag

on:
  push:
    tags:
      - v*

jobs:
  Build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
      - name: Login to Registry
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }} 
      - name: Build and Push Docker Image
        uses: docker/build-push-action@v4
        with:
          push: true
          context: . 
          tags: |
            ghcr.io/${{ github.repository }}:${{ github.ref_name }}
            ghcr.io/${{ github.repository }}:latest
@MaxWaldorf MaxWaldorf added the github_actions Pull requests that update GitHub Actions code label Mar 25, 2023
@MaxWaldorf
Copy link
Collaborator

Thanks for the suggestion.

I'll see in a future release if I want to implement it.

Cheers

@MaxWaldorf MaxWaldorf added the enhancement New feature or request label Mar 25, 2023
@rcarmo
Copy link
Author

rcarmo commented Mar 25, 2023

Well, you should know that I am getting daily errors trying to update your image from Docker Hub via watchtower:

Could not do a head request for "maxwaldorf/guacamole:latest", falling back to regular pull.
Reason: registry responded to head request with "404 Not Found", auth: "not present"

@MaxWaldorf
Copy link
Collaborator

I appreciate your issues but that's not really something I can fix at my level.

I am not in a state to rework my flows for now either.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

No branches or pull requests

2 participants