Skip to content

Commit 2cfbbb2

Browse files
committed
ci: add CI pipeline for QuickTicket
1 parent b8badda commit 2cfbbb2

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
if: "!startsWith(github.event.head_commit.message, 'ci:')"
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Log in to GitHub Container Registry
18+
uses: docker/login-action@v3
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Build and push gateway
25+
run: |
26+
docker build -t ghcr.io/inno-devops-labs/quickticket-gateway:${{ github.sha }} ./app/gateway
27+
docker push ghcr.io/inno-devops-labs/quickticket-gateway:${{ github.sha }}
28+
29+
- name: Build and push events
30+
run: |
31+
docker build -t ghcr.io/inno-devops-labs/quickticket-events:${{ github.sha }} ./app/events
32+
docker push ghcr.io/inno-devops-labs/quickticket-events:${{ github.sha }}
33+
34+
- name: Build and push payments
35+
run: |
36+
docker build -t ghcr.io/inno-devops-labs/quickticket-payments:${{ github.sha }} ./app/payments
37+
docker push ghcr.io/inno-devops-labs/quickticket-payments:${{ github.sha }}

0 commit comments

Comments
 (0)