chore: add to contributors list #242
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🍜 Build/publish urunc-deploy | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - 'deployment/urunc-deploy/Dockerfile' | |
| - 'deployment/urunc-deploy/scripts/install.sh' | |
| - 'cmd/**' | |
| - 'pkg/**' | |
| - 'internal/**' | |
| - 'Makefile' | |
| - 'VERSION' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| get-changed-files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.check.outputs.version_changed }} | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Check if VERSION file changed | |
| id: check | |
| run: | | |
| # Get commit range | |
| if [[ "${{ github.event_name }}" == "push" ]]; then | |
| base_ref="${{ github.event.before }}" | |
| head_ref="${{ github.sha }}" | |
| else | |
| base_ref="HEAD~1" | |
| head_ref="HEAD" | |
| fi | |
| git fetch origin $base_ref --depth=1 || true | |
| changed=$(git diff --name-only "$base_ref" "$head_ref" | grep -c '^VERSION$' || true) | |
| if [[ "$changed" -gt 0 ]]; then | |
| echo "VERSION file changed" | |
| echo "version_changed=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "VERSION not changed" | |
| echo "version_changed=false" >> $GITHUB_OUTPUT | |
| fi | |
| build-dockerfiles-deploy: | |
| name: Build urunc-deploy container image | |
| needs: get-changed-files | |
| uses: ./.github/workflows/build-latest.yml | |
| secrets: inherit | |
| with: | |
| runner: '["base", "dind", "2204"]' | |
| runner-archs: '["amd64", "arm64"]' | |
| dockerfiles: 'deployment/urunc-deploy/Dockerfile' | |
| version-tag: ${{ needs.get-changed-files.outputs.version == 'true' }} |