TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.76k stars 1.09k forks source link

[TT-13122] build multiarch image on 1.22-bullseye #6549

Closed jeffy-mathew closed 2 months ago

jeffy-mathew commented 2 months ago

User description

Description

build multiarch image on 1.22-bullseye, currently the step is skipped with a typo from go 1.22 upgrade

Related Issue

https://tyktech.atlassian.net/browse/TT-13122

Motivation and Context

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

Checklist


PR Type

configuration changes


Description


Changes walkthrough 📝

Relevant files
Configuration changes
release.yml
Update multiarch image build condition in release workflow

.github/workflows/release.yml
  • Updated the condition for building a multiarch image.
  • Changed the golang_cross version from 1.21-bullseye to 1.22-bullseye.
  • +1/-1     

    💡 PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    github-actions[bot] commented 2 months ago

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No key issues to review
    github-actions[bot] commented 2 months ago

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Maintainability
    Use a more flexible condition to match any version starting with '1.' and ending with '-bullseye' ___ **Consider using a more inclusive condition to allow for future versions without
    needing modifications. Instead of hardcoding the version, use a regular expression
    or a wildcard to match any version that starts with '1.' and ends with '-bullseye'.** [.github/workflows/release.yml [174]](https://github.com/TykTechnologies/tyk/pull/6549/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R174-R174) ```diff -if: ${{ matrix.golang_cross == '1.22-bullseye' }} +if: ${{ startsWith(matrix.golang_cross, '1.') && endsWith(matrix.golang_cross, '-bullseye') }} ```
    Suggestion importance[1-10]: 8 Why: The suggestion improves maintainability by allowing future versions to be matched without requiring code changes, which is beneficial for long-term flexibility and reduces the need for frequent updates.
    8
    github-actions[bot] commented 2 months ago

    API Changes

    no api changes detected
    sonarcloud[bot] commented 2 months ago

    Quality Gate Passed Quality Gate passed

    Issues
    0 New issues
    0 Accepted issues

    Measures
    0 Security Hotspots
    0.0% Coverage on New Code
    0.0% Duplication on New Code

    See analysis details on SonarCloud

    jeffy-mathew commented 2 months ago

    /release to release-5.6

    jeffy-mathew commented 2 months ago

    /release to release-5.6.0

    tykbot[bot] commented 2 months ago

    Working on it! Note that it can take a few minutes.

    tykbot[bot] commented 2 months ago

    Working on it! Note that it can take a few minutes.

    tykbot[bot] commented 2 months ago

    @jeffy-mathew Succesfully merged PR

    tykbot[bot] commented 2 months ago

    @jeffy-mathew Succesfully merged PR