From 2cf00a501876563fb179f5bb07a7d4270c345bbc Mon Sep 17 00:00:00 2001 From: Pau Rodriguez-Estivill Date: Sun, 16 Oct 2022 11:51:04 +0200 Subject: [PATCH] Fix CI tests --- .github/workflows/ci.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b183f6f..c35e2bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,10 @@ on: jobs: test-script: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 services: postgres: - image: postgres:latest + image: postgres:14 env: POSTGRES_DB: "database" POSTGRES_USER: "user" @@ -23,7 +23,7 @@ jobs: --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Test backup script for pg_dump env: @@ -118,13 +118,13 @@ jobs: needs: [ test-script ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Test docker images build run: docker buildx bake --pull @@ -132,19 +132,19 @@ jobs: publish: if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} needs: [ test-script ] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 environment: docker.io steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -169,18 +169,18 @@ jobs: # publish: # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # needs: [ test-script ] - # runs-on: ubuntu-latest + # runs-on: ubuntu-22.04 # steps: - # - uses: actions/checkout@v2 + # - uses: actions/checkout@v3 # # - name: Set up QEMU - # uses: docker/setup-qemu-action@v1 + # uses: docker/setup-qemu-action@v2 # # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v1 + # uses: docker/setup-buildx-action@v2 # # - name: Login to GitHub Container Registry - # uses: docker/login-action@v1 + # uses: docker/login-action@v2 # with: # registry: ghcr.io # username: ${{ github.actor }}