Skip to content

Commit

Permalink
fix: simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
davhdavh committed Jul 10, 2024
1 parent 54716e1 commit c293643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ concurrency:
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3
with:
Expand All @@ -33,7 +35,7 @@ jobs:
with:
#only push for main branch
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/${{ matrix.platform }}
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.title=Voxmeter MariaDB
org.opencontainers.image.description=Voxmeter MariaDB
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM bitnami/mariadb:11.2.4-debian-12-r4

USER 0
COPY --chown=root:root --chmod=555 ./backup.sh /usr/local/bin
RUN install_packages zstd awscli
COPY --chown=0:0 --chmod=555 ./backup.sh /usr/local/bin
USER 1001

0 comments on commit c293643

Please sign in to comment.