Skip to content

Build a new release, update go packages for darwin (#478) #94

Build a new release, update go packages for darwin (#478)

Build a new release, update go packages for darwin (#478) #94

Workflow file for this run

name: gocore docker
on:
push:
tags:
- 'v*'
jobs:
docker:
name: docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Version
id: version
run: echo "tag=$(echo ${GITHUB_REF:10})" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Install QEMU for Multi-Platform Builds
uses: docker/setup-qemu-action@v2
- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and Push Docker Image for Multiple Architectures
run: |
docker buildx create --use
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag ghcr.io/core-coin/go-core:${{ steps.version.outputs.tag }} \
--tag ghcr.io/core-coin/go-core:latest \
--push .
- name: Verify Image Digest (Optional)
run: docker buildx imagetools inspect ghcr.io/core-coin/go-core:latest