Skip to content

Commit

Permalink
streamline github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Dec 3, 2024
1 parent 9387dd7 commit 9f224ab
Showing 1 changed file with 8 additions and 43 deletions.
51 changes: 8 additions & 43 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ jobs:
attestations: write
id-token: write
strategy:
fail-fast: false
matrix:
platform:
- amd64
# - arm64
fail-fast: true

steps:

Expand All @@ -55,55 +51,24 @@ jobs:
username: ictu
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/ictu/pseudoniemenservice

- name: Set up Pack
uses: buildpacks/github-actions/[email protected]
with:
pack-version: 0.35.1

# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ghcr.io/ictu/pseudoniemenservice-${{ matrix.platform }}

- name: Build and publish OCI image
run: |
pack build ghcr.io/ictu/pseudoniemenservice-${{ matrix.platform }} \
pack build ghcr.io/ictu/pseudoniemenservice \
--builder docker.io/paketobuildpacks/builder-jammy-buildpackless-tiny \
--buildpack gcr.io/paketo-buildpacks/java-native-image \
--path . \
--platform linux/${{ matrix.platform }} \
--report-output-dir ./report.toml \
--publish \
--env BP_NATIVE_IMAGE=true
merge:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
needs:
- build

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ghcr.io/ictu/pseudoniemenservice

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io/ictu/pseudoniemenservice
username: ictu
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest list and push
run: |
docker buildx imagetools create --tag ghcr.io/ictu/pseudoniemenservice ghcr.io/ictu/pseudoniemenservice-amd64
# docker buildx imagetools create --tag ghcr.io/ictu/pseudoniemenservice ghcr.io/ictu/pseudoniemenservice-amd64 ghcr.io/ictu/pseudoniemenservice-arm64

0 comments on commit 9f224ab

Please sign in to comment.