Skip to content

install pkg-config? #4

install pkg-config?

install pkg-config? #4

Workflow file for this run

name: Build
on:
push:
branches:
- master
paths-ignore:
- "README.md"
workflow_dispatch:
jobs:
RepoName:
runs-on: ubuntu-latest
outputs:
value: ${{ steps.RepoName.outputs.lowercase }}
steps:
- name: Get Repo Name
id: RepoName
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository_owner }}/${{ github.event.repository.name }}
- name: Set Repo Name
run: echo "REPO_NAME=${{ steps.RepoName.outputs.lowercase }}" >> $GITHUB_OUTPUT
GenTag:
outputs:
value: ${{steps.GenTagName.outputs.value}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Tag Name
id: GenTagName
run: |
genTag="r$(git rev-list HEAD --count)"
echo "$genTag"
echo "value=$genTag" >> $GITHUB_OUTPUT
build:
needs:
- GenTag
- RepoName
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/#-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
#, linux/arm/v7, linux/arm64, linux/386, linux/ppc64le, linux/s390x
context: .
build-args: version=${{ needs.GenTag.outputs.value }}
push: true
tags: |
ghcr.io/${{ needs.RepoName.outputs.value }}:latest,
ghcr.io/${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }},