Skip to content

Bump docker/bake-action from 3 to 4 #246

Bump docker/bake-action from 3 to 4

Bump docker/bake-action from 3 to 4 #246

Workflow file for this run

name: xgo
concurrency:
group: xgo-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
tags:
- 'v*'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
paths-ignore:
- '**.md'
env:
DESTDIR: ./bin
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build artifacts
uses: docker/bake-action@v4
with:
targets: artifact-all
provenance: false
-
name: Release
uses: docker/bake-action@v4
with:
targets: release
provenance: false
-
name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: xgo
path: ${{ env.DESTDIR }}/release/*
if-no-files-found: error
-
name: GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: true
files: |
${{ env.DESTDIR }}/release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}