Skip to content

Commit

Permalink
ci: switch to ghaction-setup-docker action
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Feb 27, 2024
1 parent a722441 commit 642c903
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/ci.yml
Expand Up @@ -18,9 +18,6 @@ on:
required: false
default: "false"

env:
DOCKER_CLI_VERSION: "25.0.1"

permissions:
contents: read # to fetch code (actions/checkout)

Expand Down Expand Up @@ -139,19 +136,17 @@ jobs:
- plugin
- standalone
engine:
- 24.0.9
- 25.0.3
- v24.0.9
- v25.0.3
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Install Docker ${{ matrix.engine }}
run: |
sudo apt-get install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --version ${{ matrix.engine }}
- name: Check Docker Version
run: docker --version
-
name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v3
with:
version: ${{ matrix.engine }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -162,11 +157,6 @@ jobs:
go-version-file: 'go.mod'
check-latest: true
cache: true
-
name: Setup docker CLI
run: |
curl https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLI_VERSION}.tgz | tar xz
sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version
-
name: Build
uses: docker/bake-action@v2
Expand Down

0 comments on commit 642c903

Please sign in to comment.