GithubHelp home page GithubHelp logo

Comments (4)

DarthSim avatar DarthSim commented on May 27, 2024

Hey @EugenMayer!

Yes, we're considering migrating to ghrc.io. PRs are always welcome!

from imgproxy.

EugenMayer avatar EugenMayer commented on May 27, 2024

Great!

I am trying to make sense of https://github.com/imgproxy/imgproxy/tree/master/.github and the workflow setup. Are you actually publishing your docker-hub images via actions and if yes, what is https://github.com/imgproxy/imgproxy/tree/master/.github/ci-docker ?

from imgproxy.

DarthSim avatar DarthSim commented on May 27, 2024

c-docker is the Docker image that is used for CI tsaks (tests, lints). We're using Google Cloud Run for builds: https://github.com/imgproxy/imgproxy/blob/master/cloudbuild.yaml

from imgproxy.

EugenMayer avatar EugenMayer commented on May 27, 2024

Well considering this, i will not be able to do anything practical then using a PR.

see https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic

export CR_PAT=YOUR_TOKEN
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin

now tag the image

export GHCR_TAG=ghcr.io/imgproxy/imgproxy:$TAG
docker tag $HUBIMAGE ghcr.io/imgproxy/imgproxy:$GHCR_TAG
docker push $GHCR_TAG

There is not much i can provide here, i have no experience with google runners. Doing the entire thing as github action is trivial. This would be tag-release based and token handling is automatic.

name: build-and-push

on:
  push:
    tags:
      - '*'

env:
  IMAGE_FQDN: ghcr.io/imgproxy/imgproxy

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v2
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      - name: Login to GHCR
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.repository_owner }}
          password: ${{ github.token }}
      # push only on main
      - name: Build and push
        uses: docker/build-push-action@v3
        with:
          context: .
          platforms: linux/amd64
          push: true
          tags: | 
            ${{ env.IMAGE_FQDN }}:latest
            ${{ env.IMAGE_FQDN }}:${{ github.ref_name }}
          build-args: |
            TRAEFIK_VERSION=${{ github.ref_name }}

from imgproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.