diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..0847413 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 }} diff --git a/docker-compose.yaml b/docker-compose.yaml index d9a5932..46469e4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -36,6 +36,7 @@ services: directus: build: context: docker/directus/ + image: ghcr.io/teritorio/elasa-directus:master ports: - 8055:8055 volumes: @@ -76,6 +77,7 @@ services: api: build: context: . + image: ghcr.io/teritorio/elasa-api:master environment: <<: *common-environment # RAILS_ENV: ${RAILS_ENV:-production}