diff --git a/.gitea/workflows/build-java.yml b/.gitea/workflows/build-java.yml new file mode 100644 index 0000000..b0a5873 --- /dev/null +++ b/.gitea/workflows/build-java.yml @@ -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 }} \ No newline at end of file diff --git a/.gitea/workflows/build-php.yml b/.gitea/workflows/build-php.yml new file mode 100644 index 0000000..380e826 --- /dev/null +++ b/.gitea/workflows/build-php.yml @@ -0,0 +1,33 @@ +name: Build PHP Images + +on: + push: + branches: + - main + schedule: + - cron: "@weekly" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + php_version: [82, 84] + 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: php/Dockerfile.php${{ matrix.php_version }} + push: true + tags: ${{ vars.CI_REGISTRY_IMAGE }}:php${{ matrix.php_version }} \ No newline at end of file diff --git a/.gitea/workflows/build-python.yml b/.gitea/workflows/build-python.yml new file mode 100644 index 0000000..c730c6d --- /dev/null +++ b/.gitea/workflows/build-python.yml @@ -0,0 +1,30 @@ +name: Build Python Images + +on: + push: + branches: + - main + schedule: + - cron: "@weekly" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + 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: python/Dockerfile.python3 + push: true + tags: ${{ vars.CI_REGISTRY_IMAGE }}:python3 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 0dd2fd7..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,21 +0,0 @@ -image: quay.io/buildah/stable:latest - -variables: - STORAGE_DRIVER: vfs - BUILDAH_FORMAT: docker - FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE" - BUILDAH_NO_PROMPT: "1" - -workflow: - rules: - - if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "schedule"' - when: always - - when: never - -stages: - - build - -include: - - "java/.gitlab-ci.yml" - - "php/.gitlab-ci.yml" - - "python/.gitlab-ci.yml" \ No newline at end of file diff --git a/java/.gitlab-ci.yml b/java/.gitlab-ci.yml deleted file mode 100644 index 93b67b3..0000000 --- a/java/.gitlab-ci.yml +++ /dev/null @@ -1,12 +0,0 @@ -.default_build_template: &build_template - stage: build - script: - - buildah info - - buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:java${JAVA_VERSION} -f java/Dockerfile.java${JAVA_VERSION} . - - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" - - buildah push ${FQ_IMAGE_NAME}:java${JAVA_VERSION} - -build_java21: - <<: *build_template - variables: - JAVA_VERSION: "21" \ No newline at end of file diff --git a/php/.gitlab-ci.yml b/php/.gitlab-ci.yml deleted file mode 100644 index ee140a8..0000000 --- a/php/.gitlab-ci.yml +++ /dev/null @@ -1,17 +0,0 @@ -.default_build_template: &build_template - stage: build - script: - - buildah info - - buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:php${PHP_VERSION} -f php/Dockerfile.php${PHP_VERSION} . - - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" - - buildah push ${FQ_IMAGE_NAME}:php${PHP_VERSION} - -build_php82: - <<: *build_template - variables: - PHP_VERSION: "82" - -build_php84: - <<: *build_template - variables: - PHP_VERSION: "84" \ No newline at end of file diff --git a/python/.gitlab-ci.yml b/python/.gitlab-ci.yml deleted file mode 100644 index e92c6b0..0000000 --- a/python/.gitlab-ci.yml +++ /dev/null @@ -1,12 +0,0 @@ -.default_build_template: &build_template - stage: build - script: - - buildah info - - buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:python${PYTHON_VERSION} -f python/Dockerfile.python${PYTHON_VERSION} . - - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" - - buildah push ${FQ_IMAGE_NAME}:python${PYTHON_VERSION} - -build_python3: - <<: *build_template - variables: - PYTHON_VERSION: "3" \ No newline at end of file