Skip to content

Commit

Permalink
test build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi-02 committed Jan 16, 2024
1 parent 4896e23 commit 32be5e6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Create and publish Docker images
on:
push:
# branches:
# - 'master'
tags:
- 'v*'

env:
REGISTRY: rtwcr1.azurecr.io
REGISTRY_USERNAME: GitHub-Actions
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
service: [frontend, services/auth-service, services/analytics-service, services/heatmap-service, services/pin-service, services/update-service]

permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker (${{ matrix.service }})
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ matrix.service }}

- name: Build and push Docker image (${{ matrix.service }})
uses: docker/build-push-action@v5
with:
context: ${{ matrix.service }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 2 additions & 1 deletion frontend/src/js/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export async function getHeatmapData() {
const response = await fetch(`${backendUrl}/heatmap`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
"tenant": TENANT
}
});

Expand Down

0 comments on commit 32be5e6

Please sign in to comment.