ccccc #45
Workflow file for this run
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
# Reference from: | |
# https://goreleaser.com/ci/actions/ | |
name: Release | |
on: | |
push: | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
arch: | |
- amd64 | |
- arm64 | |
steps: | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: all | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Login, build and push image to Docker Hub | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# We ask Docker to use GitHub Action's native caching support to speed up | |
# the build, per https://docs.docker.com/build/cache/backends/gha/. | |
- name: Build and push | |
id: image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/${{ matrix.arch }} | |
push: true | |
tags: kcllang/kcl |