Skip to content

Commit

Permalink
Merge pull request #12299 from filecoin-project/rvagg/releases/v1.28.0
Browse files Browse the repository at this point in the history
chore: release: merge release/v1.28.0 into releases
  • Loading branch information
rvagg authored Jul 24, 2024
2 parents 5a235b9 + c3de4ff commit 1f8517d
Show file tree
Hide file tree
Showing 103 changed files with 4,461 additions and 2,714 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ on:
push:
branches:
- master
- release/*
tags:
- v*
pull_request:
branches:
- master
- release/v*
- release/miner/v*
- releases
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
description: 'Publish the Docker image'
ref:
description: The GitHub ref (e.g. refs/tags/v1.0.0) to release
required: false
default: 'false'

defaults:
run:
Expand All @@ -30,7 +24,7 @@ permissions:

jobs:
docker:
name: Docker (${{ matrix.image }} / ${{ matrix.network }}) [publish=${{ github.event.inputs.publish == 'true' || github.event_name != 'pull_request' }}]
name: Docker (${{ matrix.image }} / ${{ matrix.network }}) [publish=${{ (inputs.ref || github.ref) == 'refs/heads/master' || startsWith(inputs.ref || github.ref, 'refs/tags/') }}]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -46,13 +40,13 @@ jobs:
- image: lotus
network: mainnet
env:
PUBLISH: ${{ github.event.inputs.publish == 'true' || github.event_name != 'pull_request' }}
PUBLISH: ${{ github.ref == 'refs/heads/master' || startsWith(inputs.ref || github.ref, 'refs/tags/') }}
steps:
- id: channel
env:
IS_MASTER: ${{ github.ref == 'refs/heads/master' }}
IS_TAG: ${{ startsWith(github.ref, 'refs/tags/') }}
IS_RC: ${{ contains(github.ref, '-rc') }}
IS_MASTER: ${{ (inputs.ref || github.ref) == 'refs/heads/master' }}
IS_TAG: ${{ startsWith(inputs.ref || github.ref, 'refs/tags/') }}
IS_RC: ${{ contains(inputs.ref || github.ref, '-rc') }}
IS_SCHEDULED: ${{ github.event_name == 'schedule' }}
run: |
channel=''
Expand All @@ -73,9 +67,12 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
ref: ${{ inputs.ref || github.ref }}
- id: git
env:
REF: ${{ inputs.ref || github.ref }}
run: |
ref="${GITHUB_REF#refs/heads/}"
ref="${REF#refs/heads/}"
ref="${ref#refs/tags/}"
sha="$(git rev-parse --short HEAD)"
echo "ref=$ref" | tee -a "$GITHUB_OUTPUT"
Expand All @@ -89,7 +86,7 @@ jobs:
images: filecoin/${{ matrix.image }}
tags: |
type=raw,enable=${{ steps.channel.outputs.channel != '' }},value=${{ steps.channel.outputs.channel }}
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},value=${{ steps.git.outputs.ref }}
type=raw,enable=${{ startsWith(inputs.ref || github.ref, 'refs/tags/') }},value=${{ steps.git.outputs.ref }}
type=raw,value=${{ steps.git.outputs.sha }}
flavor: |
latest=false
Expand Down
Loading

0 comments on commit 1f8517d

Please sign in to comment.