Version 2.601 #48
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
name: rojen/amusewiki:texlive-minimal | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Login | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Build the Docker image version | |
run: docker build package/ --file package/Dockerfile.getversion --tag amw_version | |
- name: Build the Docker image | |
run: docker build texlive-minimal/ --file texlive-minimal/Dockerfile --tag rojen/amusewiki:texlive-minimal --tag rojen/amusewiki:texlive-minimal-$(docker run amw_version) --build-arg AMUSE_BUILD_DOMAIN=amusewiki.localdomain --build-arg AMUSE_CLONE_COMMAND='git clone https://github.com/melmothx/amusewiki.git /var/lib/amusewiki' --build-arg AMW_WORKERS=5 --build-arg AMW_NPROC=5 --build-arg AMW_USERNAME=amusewiki --build-arg AMW_PASSWORD=changeme --build-arg AMW_SQLITE_PATH=/var/lib/dbconfig-common/sqlite3/amusewiki/amusewiki | |
- name: Docker Push | |
run: docker push rojen/amusewiki:texlive-minimal; docker push rojen/amusewiki:texlive-minimal-$(docker run amw_version) |