Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
29d5f8a
ci: fix publish-release workflow indentation and switch to GCP_ARTIFA…
davidagustin Oct 30, 2025
cf4123c
ci: push latest image to GCP Artifact Registry and Docker Hub using G…
davidagustin Oct 30, 2025
d97c37d
updated name of secret
davidagustin Oct 30, 2025
3f027e0
test branch before publish
davidagustin Oct 30, 2025
3aaa208
Update
davidagustin Oct 30, 2025
06e6549
ci: update CI workflow
davidagustin Oct 30, 2025
b3357e6
build(docker): ensure /etc/service/appserver exists before moving app…
davidagustin Oct 30, 2025
27b455f
build(docker): replace apt-key with keyrings, install gnupg/ca-certif…
davidagustin Oct 30, 2025
2c9bd8e
revert(docker): restore Dockerfile to original state prior to recent …
davidagustin Oct 30, 2025
fd3c23b
build(docker): replace deprecated apt-key with modern GPG keyring man…
davidagustin Nov 2, 2025
cfc975e
build(docker): remove problematic repo configs before apt-get update …
davidagustin Nov 2, 2025
4d46fc4
build(docker): improve PostgreSQL repo setup, remove unnecessary repo…
davidagustin Nov 2, 2025
1ede91b
build(docker): add debugging output and remove all custom repos befor…
davidagustin Nov 2, 2025
2ab60d0
build(docker): remove debugging output and clean up Dockerfile now th…
davidagustin Nov 2, 2025
9997770
build(docker): separate package installations and fix LD_PRELOAD warning
davidagustin Nov 2, 2025
69890ae
build(docker): split PostgreSQL repo setup into separate steps with v…
davidagustin Nov 2, 2025
d3ce741
build(docker): use wget for GPG key download and fix LD_PRELOAD varia…
davidagustin Nov 2, 2025
e00aeef
build(docker): add debugging output for apt-get update failure
davidagustin Nov 2, 2025
2cfc654
build(docker): remove debugging code now that build is working
davidagustin Nov 2, 2025
ae008d0
build(docker): add retry logic for apt-get update to handle transient…
davidagustin Nov 2, 2025
8e24a14
build(docker): add detailed error debugging for apt-get update failure
davidagustin Nov 2, 2025
f788927
chore(ci): revert Dockerfile to master and update CI to use master br…
davidagustin Jan 15, 2026
fad8666
Merge branch 'master' into migrate-to-gcp
davidagustin Jan 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.ruby-version
.bundle

# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
NODE_VERSION: 16.x
RAILS_ENV: test
TEXTELLENT_AUTH_CODE: ${{ secrets.TEXTELLENT_AUTH_CODE }}
GCP_REPO: us-west2-docker.pkg.dev/askdarcel-184805/sheltertech/askdarcel-api
DOCKER_REPO: sheltertechsf/askdarcel-api

jobs:
Expand Down Expand Up @@ -71,12 +72,22 @@ jobs:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_ARTIFACT_REGISTRY_KEY }}
- uses: docker/login-action@v3
with:
registry: us-west2-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCP_ARTIFACT_REGISTRY_KEY }}
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: docker/build-push-action@v2
with:
push: true
tags: ${{ env.DOCKER_REPO }}:latest
tags: |
${{ env.DOCKER_REPO }}:latest
${{ env.GCP_REPO }}:latest
- run: echo ${{ steps.docker_build.outputs.digest }}
13 changes: 13 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '*'

env:
GCP_REPO: us-west2-docker.pkg.dev/askdarcel-184805/sheltertech/askdarcel-api
DOCKER_REPO: sheltertechsf/askdarcel-api

jobs:
Expand All @@ -23,15 +24,27 @@ jobs:
prefix=
suffix=
images: |
${{ env.GCP_REPO }}
${{ env.DOCKER_REPO }}
tags: |
type=semver,pattern={{version}}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: google-github-actions/auth@v2
# Login to google registry
with:
credentials_json: ${{ secrets.GCP_ARTIFACT_REGISTRY_KEY }}
# Authenticate with Google Cloud
- uses: docker/login-action@v3
with:
registry: us-west2-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCP_ARTIFACT_REGISTRY_KEY }}
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# Build and push to both registries
- uses: docker/build-push-action@v2
with:
push: true
Expand Down