From 6e08fa611c08f5412f321b3c222b6e114b49987f Mon Sep 17 00:00:00 2001 From: Maximilian Greve Date: Tue, 23 Jan 2024 09:19:54 +0000 Subject: [PATCH 1/3] changed archive path to dbp --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a0eadc6..a305409 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG cachet_ver ARG archive_url ENV cachet_ver ${cachet_ver:-2.5} -ENV archive_url ${archive_url:-https://github.com/fiveai/Cachet/archive/${cachet_ver}.tar.gz} +ENV archive_url https://github.com/dBildungsplattform/Cachet/archive/2.5.tar.gz ENV COMPOSER_VERSION 1.9.0 From 9d190c0851b071c77756d43ec28c895aacc63e0f Mon Sep 17 00:00:00 2001 From: Maximilian Greve Date: Tue, 23 Jan 2024 09:23:06 +0000 Subject: [PATCH 2/3] add workflow to build image --- .github/workflows/cachet-to-ghcr-on-push.yaml | 18 ++++++++ .github/workflows/docker.yml | 45 ------------------- 2 files changed, 18 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/cachet-to-ghcr-on-push.yaml delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/cachet-to-ghcr-on-push.yaml b/.github/workflows/cachet-to-ghcr-on-push.yaml new file mode 100644 index 0000000..80be3bb --- /dev/null +++ b/.github/workflows/cachet-to-ghcr-on-push.yaml @@ -0,0 +1,18 @@ +--- + name: Cachet Docker Image on Push to GHCR + + on: + push: + branches: + - "2.5" + + jobs: + build_image_on_push: + permissions: + packages: write + security-events: write + actions: read + contents: read + uses: hpi-schul-cloud/infra-tools/.github/workflows/imagetoghcr-on-push.yaml@master + with: + image_name: "cachet" \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 22a8248..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Publish Docker image -on: - push: - branches: [ "*" ] - tags: [ "*" ] - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) - - - name: Docker meta - id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 - with: - images: sedan07/cachet - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v2 - with: - push: true - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} - build-args: | - cachet_ver=${{ steps.get_version.outputs.VERSION }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} From b5fb9be9f6dcedca325d3d672dc1858c3adfcc9a Mon Sep 17 00:00:00 2001 From: Maximilian Greve Date: Tue, 23 Jan 2024 09:29:36 +0000 Subject: [PATCH 3/3] fixed indentation --- .github/workflows/cachet-to-ghcr-on-push.yaml | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cachet-to-ghcr-on-push.yaml b/.github/workflows/cachet-to-ghcr-on-push.yaml index 80be3bb..d79c287 100644 --- a/.github/workflows/cachet-to-ghcr-on-push.yaml +++ b/.github/workflows/cachet-to-ghcr-on-push.yaml @@ -1,18 +1,18 @@ --- - name: Cachet Docker Image on Push to GHCR - - on: - push: - branches: - - "2.5" - - jobs: - build_image_on_push: - permissions: - packages: write - security-events: write - actions: read - contents: read - uses: hpi-schul-cloud/infra-tools/.github/workflows/imagetoghcr-on-push.yaml@master - with: - image_name: "cachet" \ No newline at end of file +name: Cachet Docker Image on Push to GHCR + +on: + push: + branches: + - "2.5" + +jobs: + build_image_on_push: + permissions: + packages: write + security-events: write + actions: read + contents: read + uses: hpi-schul-cloud/infra-tools/.github/workflows/imagetoghcr-on-push.yaml@master + with: + image_name: "cachet" \ No newline at end of file