Skip to content

Merge pull request #110 from dokku/dependabot/go_modules/github.com/r… #158

Merge pull request #110 from dokku/dependabot/go_modules/github.com/r…

Merge pull request #110 from dokku/dependabot/go_modules/github.com/r… #158

Workflow file for this run

---
name: CI
# yamllint disable-line rule:truthy
on:
pull_request:
branches:
- "*"
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ubuntu-24.04
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: make version
run: |
make version .env.docker
- run: make ci-report
- run: make build-docker-image
- run: make build-in-docker
- run: make validate-in-docker
- name: upload packages
uses: actions/upload-artifact@v7
with:
name: build
path: build/**/*
binary-check:
name: binary-check
runs-on: ubuntu-24.04
needs: build
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
- name: Get Repository Name
id: repo-name
run: |
echo "REPOSITORY_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)" >> $GITHUB_OUTPUT
echo "TARGET_ARCHITECTURE=$(dpkg --print-architecture)" >> $GITHUB_OUTPUT
- name: Build binary
env:
VERSION: ${{ github.ref_name }}
run: |
make build/linux/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-${{ steps.repo-name.outputs.TARGET_ARCHITECTURE }}
mkdir -p dist
cp build/linux/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-${{ steps.repo-name.outputs.TARGET_ARCHITECTURE }} \
dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-${{ steps.repo-name.outputs.TARGET_ARCHITECTURE }}
- name: Check version
run: |
"dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-${{ steps.repo-name.outputs.TARGET_ARCHITECTURE }}" --version