gitea
This commit is contained in:
1 parent
4652d60875
commit
cc35f45184
7 files changed
+96
-62
No files matched your search
@@ -0,0 +1,33 @@
|
||||
name: Build Java Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "@weekly"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java_version: [21]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: java/Dockerfile.java${{ matrix.java_version }}
|
||||
push: true
|
||||
tags: ${{ vars.CI_REGISTRY_IMAGE }}:java${{ matrix.java_version }}
|
||||
Reference in new issue
Block a user