From 9d9b35629b64f0b69a7305cc95068475cb3a8214 Mon Sep 17 00:00:00 2001 From: Sven Kiesewetter Date: Wed, 10 Jan 2024 09:12:43 +0100 Subject: [PATCH] feat!: update gradle to 8.5 (#92129) * added docker preparation to workflows --- .github/actions/prepare-docker/action.yaml | 12 ++++++++++++ .github/workflows/build.yml | 5 +++++ .github/workflows/release.yml | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 .github/actions/prepare-docker/action.yaml diff --git a/.github/actions/prepare-docker/action.yaml b/.github/actions/prepare-docker/action.yaml new file mode 100644 index 0000000..c1e1e22 --- /dev/null +++ b/.github/actions/prepare-docker/action.yaml @@ -0,0 +1,12 @@ +name: Preparations for later docker usage +description: prepares the access to docker.io and builds an image using createimage.sh + +runs: + using: composite + steps: + - name: Run docker login + shell: bash + run: echo ${{ inputs.docker-password }} | docker login -u ${{ inputs.docker-user }} --password-stdin + - name: Create Test container + shell: bash + run: cd testdocker && ./createimage.sh && cd .. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad0037d..1612850 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,5 +21,10 @@ jobs: steps: - name: Setup uses: IntershopCommunicationsAG/.github/actions/gradle-plugin-setup@v1.0 + - name: Prepare Docker + uses: ./.github/actions/prepare-docker + with: + docker-user: ${{ secrets.DOCKERUSER }} + docker-password: ${{ secrets.DOCKERPASSWD }} - name: Build uses: IntershopCommunicationsAG/.github/actions/gradle-plugin-build@v1.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c4a77c..61a317d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,11 @@ jobs: steps: - name: Setup uses: IntershopCommunicationsAG/.github/actions/gradle-plugin-setup@v1.0 + - name: Prepare Docker + uses: ./.github/actions/prepare-docker + with: + docker-user: ${{ secrets.DOCKERUSER }} + docker-password: ${{ secrets.DOCKERPASSWD }} - name: Release uses: IntershopCommunicationsAG/.github/actions/gradle-plugin-release@v1.0 with: