Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
swissbuechi committed Nov 10, 2023
1 parent 8d72283 commit c4c7249
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build binary artifacts
name: Artifacts native build and upload

on:
release:
types: [ published ]
types: [published]

jobs:
build:
name: Build binary ${{ matrix.asset_name }} on ${{ matrix.os }}
name: Build artifact ${{ matrix.asset_name }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -33,10 +33,10 @@ jobs:
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build native binary
- name: Build artifact
run: mvn -Pnative native:compile -DskipTests=true

- name: Upload binaries to release
- name: Upload artifact to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Build Docker image
name: Docker image build and push

on:
release:
types: [ published ]
types: [published]
push:

permissions:
contents: read
packages: write

env:
REGISTRY: ghcr.io

IMAGE_NAME: ${{ github.repository }}

jobs:
build:
name: Build Docker image ${{ matrix.type }}
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name == 'release' }}
file: ${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c4c7249

Please sign in to comment.