load plugins when init metrics (#608) #578
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker-image | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
- name: Log in to the ghcr | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Log in to the docker | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker meta | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: | | |
ghcr.io/${{ github.repository }} | |
${{ github.repository }} | |
tags: | | |
type=ref,event=tag | |
- name: Docker meta for debug version | |
if: ${{ github.ref == 'refs/heads/master' }} | |
id: debug-meta | |
uses: docker/[email protected] | |
with: | |
images: | | |
ghcr.io/${{ github.repository }} | |
${{ github.repository }} | |
tags: | | |
type=sha,format=long,prefix= | |
- name: Build and push image | |
if: ${{ steps.meta.outputs.tags != '' }} | |
uses: docker/[email protected] | |
with: | |
context: "." | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
- name: "[debug version] Build and push image" | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: docker/[email protected] | |
with: | |
context: "." | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
build-args: | | |
KEEP_SYMBOL=1 | |
tags: ${{ steps.debug-meta.outputs.tags }} |