Skip to content

Commit

Permalink
Workflows (#393)
Browse files Browse the repository at this point in the history
* update build scripts and workflows
  • Loading branch information
NyakudyaA authored Oct 27, 2022
1 parent 6fc6147 commit 3a49b15
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
steps:
- 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: Build image for testing
id: docker_build_testing_image
uses: docker/build-push-action@v3
Expand Down Expand Up @@ -100,11 +100,11 @@ jobs:
steps:
- 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 DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
steps:
- 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 DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
6 changes: 5 additions & 1 deletion build-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ if [[ ! -f .env ]]; then
cp .example.env .env
fi

docker-compose -f docker-compose.build.yml build postgis-base
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build.yml build postgis-base
else
docker compose -f docker-compose.build.yml build postgis-base
fi

6 changes: 5 additions & 1 deletion build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ if [[ ! -f .env ]]; then
cp .example.env .env
fi

docker-compose -f docker-compose.build.yml build postgis-test
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build.yml build postgis-test
else
docker compose -f docker-compose.build.yml build postgis-test
fi
12 changes: 10 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ if [[ ! -f .env ]]; then
cp .example.env .env
fi

docker-compose -f docker-compose.build.yml build postgis-prod
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build.yml build postgis-prod
else
docker compose -f docker-compose.build.yml build postgis-prod
fi

#docker-compose -f docker-compose.build-timescale.yml build postgis-prod
#if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
#docker-compose -f docker-compose.build-timescale.yml build postgis-prod
#else
#docker compose -f docker-compose.build-timescale.yml build postgis-prod
#fi

0 comments on commit 3a49b15

Please sign in to comment.