Skip to content

Fix all linting issues in changelog #1588

Fix all linting issues in changelog

Fix all linting issues in changelog #1588

Workflow file for this run

name: Docker Build
on:
push:
branches:
- main
workflow_call:
inputs:
ref:
description: 'Git reference'
required: true
type: string
tag:
description: 'Docker tag'
required: true
type: string
jobs:
build:
name: Build Docker Image
runs-on: ubuntu-24.04
steps:
- name: Define variables on push to `main`
if: github.event_name == 'push'
run: |
echo "CHECKOUT_REF=main" >> $GITHUB_ENV
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
- name: Define variables on workflow call
if: github.event_name != 'push'
run: |
echo "CHECKOUT_REF=${{ inputs.ref }}" >> $GITHUB_ENV
echo "DOCKER_TAG=${{ inputs.tag }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
ref: ${{ env.CHECKOUT_REF }}
- name: Update branch
if: github.event_name != 'push'
run: git pull
- name: Set lowercase repository name
run: echo "REPOSITORY_LC=${REPOSITORY,,}" >> $GITHUB_ENV
env:
REPOSITORY: '${{ github.repository }}'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub registry
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- uses: docker/build-push-action@v6
with:
tags: ghcr.io/${{ env.REPOSITORY_LC }}:${{ env.DOCKER_TAG }}
platforms: linux/amd64
outputs: |
type=registry
type=local,dest=artifacts
- name: Rename binary artifact
run: mv artifacts/usr/bin/swiftlint artifacts/usr/bin/swiftlint_linux_amd64
- name: Upload binary artifact
if: github.event_name != 'push'
uses: actions/upload-artifact@v4
with:
name: swiftlint_linux_amd64
path: artifacts/usr/bin/swiftlint_linux_amd64
if-no-files-found: error
retention-days: 2