Merge pull request #18 from lemenkov/dependabot #7
This file contains 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 fcode-utils | |
on: [push, workflow_dispatch] | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build-x86_64: | |
runs-on: ubuntu-latest | |
name: fcode-utils for x86_64 | |
steps: | |
- name: Checkout fcode-utils | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Build fcode-utils | |
uses: docker://ghcr.io/openbios/fcode-utils-builder:master | |
with: | |
args: "bash -c \"mkdir -p $(pwd)/build-$(uname -m) && make && make DESTDIR=$(pwd)/build-$(uname -m) install\"" | |
- name: Copy localvalues | |
uses: docker://ghcr.io/openbios/fcode-utils-builder:master | |
with: | |
args: "bash -c \"cp -R localvalues build-$(uname -m)\"" | |
- name: Store x86_64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fcode-utils-x86_64 | |
path: | | |
build-x86_64 | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: docker/Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |