Skip to content

build workflow

build workflow #1

# SPDX-FileCopyrightText: Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Build and publish docker image
on:
push:
branches:
- docker-build
env:
APP_NAME: translate2
concurrency:
group: integration-test-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
transcription:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Get app version
id: appinfo
uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
with:
filename: ${{ env.APP_NAME }}/appinfo/info.xml
expression: "//info//version"
- name: Build Docker images
run: |
./docker_build.sh ${{ fromJson(steps.appinfo.outputs.result).nextcloud.version }}
# - name: Login to DockerHub
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Push Docker images
# run: |
# ./docker_build.sh ${GITHUB_REF##*/v} 1