Skip to content

Commit

Permalink
Fix CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Oct 16, 2022
1 parent 3b8755d commit 2cf00a5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -118,33 +118,33 @@ 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

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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 2cf00a5

Please sign in to comment.