tracing #23
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: Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docker: | |
runs-on: ubuntu-20.04 | |
env: | |
PLUGIN_NAME: ghcr.io/vpaprots/docker-net-dhcp | |
PLATFORMS: linux/amd64,linux/arm64 #,linux/386,,linux/arm/v7 | |
steps: | |
- 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: Install script dependencies | |
run: pip3 install -r scripts/requirements.txt | |
- id: vars | |
name: Generate build vars | |
run: | | |
SHA="${{ github.sha }}" | |
echo "::set-output name=tag::"${SHA:0:8}-$(date +%s)Z"" | |
- name: Build | |
run: make PLUGIN_TAG=${{ steps.vars.outputs.tag }} multiarch | |
- name: Push | |
env: | |
REGISTRY_USERNAME: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
make PLUGIN_TAG=${{ steps.vars.outputs.tag }} push-multiarch | |
scripts/tag_multiarch_plugin.py -p "$PLATFORMS" "$PLUGIN_NAME:${{ steps.vars.outputs.tag }}" latest |