Skip to content

Commit

Permalink
Update java.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sora-skylab authored Sep 17, 2024
1 parent 9013d88 commit aab7eef
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: build java
name: Docker Build for Java

on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
push:
branches:
- master
- main
paths:
- java/**
- .github/workflows/java.yml
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"

jobs:
push:
name: "yolks:java_${{ matrix.tag }}"
name: "Build and Push Docker Images"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -29,21 +32,28 @@ jobs:
- 19j9
- 21
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- uses: docker/login-action@v2
- name: Check out repository
uses: actions/checkout@v3

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: sora-skylab
password: ${{ secrets.GITHUBTOKEN }}
- uses: docker/build-push-action@v3
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
push: true
context: ./java
file: ./java/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/skylabnetwork/yolks:java_${{ matrix.tag }}
ghcr.io/${{ github.repository_owner }}/docker-images:java_${{ matrix.tag }}

0 comments on commit aab7eef

Please sign in to comment.