mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-06 11:38:05 +00:00
Fix CI tests
This commit is contained in:
+16
-16
@@ -6,10 +6,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-script:
|
test-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:14
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: "database"
|
POSTGRES_DB: "database"
|
||||||
POSTGRES_USER: "user"
|
POSTGRES_USER: "user"
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Test backup script for pg_dump
|
- name: Test backup script for pg_dump
|
||||||
env:
|
env:
|
||||||
@@ -118,13 +118,13 @@ jobs:
|
|||||||
needs: [ test-script ]
|
needs: [ test-script ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Test docker images build
|
- name: Test docker images build
|
||||||
run: docker buildx bake --pull
|
run: docker buildx bake --pull
|
||||||
@@ -132,19 +132,19 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
needs: [ test-script ]
|
needs: [ test-script ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
environment: docker.io
|
environment: docker.io
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -169,18 +169,18 @@ jobs:
|
|||||||
# publish:
|
# publish:
|
||||||
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
# needs: [ test-script ]
|
# needs: [ test-script ]
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-22.04
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v2
|
# - uses: actions/checkout@v3
|
||||||
#
|
#
|
||||||
# - name: Set up QEMU
|
# - name: Set up QEMU
|
||||||
# uses: docker/setup-qemu-action@v1
|
# uses: docker/setup-qemu-action@v2
|
||||||
#
|
#
|
||||||
# - name: Set up Docker Buildx
|
# - name: Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v1
|
# uses: docker/setup-buildx-action@v2
|
||||||
#
|
#
|
||||||
# - name: Login to GitHub Container Registry
|
# - name: Login to GitHub Container Registry
|
||||||
# uses: docker/login-action@v1
|
# uses: docker/login-action@v2
|
||||||
# with:
|
# with:
|
||||||
# registry: ghcr.io
|
# registry: ghcr.io
|
||||||
# username: ${{ github.actor }}
|
# username: ${{ github.actor }}
|
||||||
|
|||||||
Reference in New Issue
Block a user