Skip to content

Commit

Permalink
CI: Docker Build and Push with custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jan 29, 2025
1 parent f318c6b commit bf458b3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker:
runs-on: ubuntu-latest
# needs: []
if: github.ref == 'refs/heads/master'

permissions:
contents: read
packages: write
id-token: write

steps:
- name: Docker Build and Push
uses: cartoway/docker-compose-build-push-action@main
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
directus:
build:
context: docker/directus/
image: ghcr.io/teritorio/elasa-directus:master
ports:
- 8055:8055
volumes:
Expand Down Expand Up @@ -76,6 +77,7 @@ services:
api:
build:
context: .
image: ghcr.io/teritorio/elasa-api:master
environment:
<<: *common-environment
# RAILS_ENV: ${RAILS_ENV:-production}
Expand Down

0 comments on commit bf458b3

Please sign in to comment.