Skip to content

add more arm targets #90

add more arm targets

add more arm targets #90

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Publish Advanced Docker image
on:
push:
tags: ["**"]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ghcr.io/${{ github.repository_owner }}/db1000n-advanced
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
target: advanced
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
"ENCRYPTION_KEYS=${{ secrets.ENCRYPTION_KEYS }}"
"CA_PATH_VALUE=${{ secrets.PROMETHEUS_ROOT_CA }}"
"PROMETHEUS_BASIC_AUTH=${{ secrets.PROMETHEUS_BASIC_AUTH }}"
"DEFAULT_CONFIG_VALUE=${{ secrets.DEFAULT_CONFIG }}"
"DEFAULT_CONFIG_PATH=${{ secrets.DEFAULT_CONFIG_PATH }}"