Skip to content

Improve goloop and Add metrics modules #204

Improve goloop and Add metrics modules

Improve goloop and Add metrics modules #204

Workflow file for this run

name: Build Docker Images
on:
push:
branches:
- master
# 혹은 수동으로 실행시킬 수 있음
workflow_dispatch:
jobs:
build:
# ubuntu-latest github runner 사용
runs-on: ubuntu-latest
steps:
# repository checkout
- uses: actions/checkout@v2
# 태그명을 다른 setp에서 사용할 수 있도록 output에 저장
- name: Set output
id: vars
run: echo ::set-output name=tag::$(make version)
# tonistiigi/binfmt 이미지를 이용해 qemu 설치
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
# docker buildx 설치
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
- name: Docker Login
uses: docker/login-action@v1.10.0
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
# buildx 명령어로 amd64, arm64, arm/v6, arm/v7 아키텍처 이미지 빌드 및
- name: Build Image
run: TERM=xterm make docker IS_MULTI_ARCH=true VERSION=latest
#working-directory: python
# run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t ${{secrets.DOCKER_USER}}/pawnlib:${{ steps.vars.outputs.tag }} --push .
- name: Build Image
run: TERM=xterm make docker IS_MULTI_ARCH=true