build workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: Nextcloud contributors | |
# SPDX-License-Identifier: AGPL-3.0-or-later | |
name: Build and publish docker image | |
on: | |
push: | |
branches: | |
- docker-build | |
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: Set app env | |
run: | | |
# Split and keep last | |
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV | |
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Build Docker images | |
run: | | |
./docker-build.sh ${{ env.APP_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 |