Skip to content

Commit

Permalink
ci: build multiplatform image
Browse files Browse the repository at this point in the history
  • Loading branch information
VilemRaska committed Feb 5, 2025
1 parent 5f43758 commit 764f27d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ jobs:
echo ::set-output name=tags::${TAGS}
echo ::set-output name=docker_image::${DOCKER_IMAGE}
- name: Setup QUEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'all'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v2
Expand All @@ -54,8 +51,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ steps.prep.outputs.tags }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yarn-error.log
testem.log
/typings
.data
.example-data


# System Files
Expand All @@ -48,4 +49,4 @@ Thumbs.db
.angular

vite.config.*.timestamp*
vitest.config.*.timestamp*
vitest.config.*.timestamp*
6 changes: 3 additions & 3 deletions compose.full-app.yml → compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- 8086:8086
volumes:
- ./.data/influxdb:/var/lib/influxdb2:rw
- ./.example-data/influxdb:/var/lib/influxdb2:rw
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=myusername
Expand All @@ -22,14 +22,14 @@ services:
ports:
- 27017:27017
volumes:
- ./.data/mongodb:/data/db:rw
- ./.example-data/mongodb:/data/db:rw
environment:
- MONGO_INITDB_ROOT_USERNAME=fik
- MONGO_INITDB_ROOT_PASSWORD=tajne-heslo
- MONGO_INITDB_DATABASE=gapp

gapp:
image: ghcr.io/odz-ujf-av-cr/gapp:latest
image: ghcr.io/odz-ujf-av-cr/gapp:5f437586
container_name: gapp
depends_on:
- influxdb
Expand Down

0 comments on commit 764f27d

Please sign in to comment.