Skip to content

Commit 7213429

Browse files
committed
CI: Docker Build and Push with custom action
1 parent 5051313 commit 7213429

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,20 @@ jobs:
2424

2525
- name: Run tests
2626
run: bundle exec rake test
27+
28+
docker:
29+
runs-on: ubuntu-latest
30+
needs: [tests]
31+
if: github.ref == 'refs/heads/master'
32+
33+
permissions:
34+
contents: read
35+
packages: write
36+
attestations: write
37+
id-token: write
38+
39+
steps:
40+
- name: Docker Build and Push
41+
uses: cartoway/docker-compose-build-push-action@main
42+
with:
43+
registry_password: ${{ secrets.GITHUB_TOKEN }}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
api:
33
build: .
4-
image: geocoder-api:${CARTOROUTE_VERSION:-latest}
4+
image: ghcr.io/cartoway/geocoder-api:${CARTOROUTE_VERSION:-master}
55
ports:
66
- "8081:80" # HOST:CONTAINER, edit only HOST part
77
volumes:

0 commit comments

Comments
 (0)