Skip to content

Prepare simplified upload #1209

Prepare simplified upload

Prepare simplified upload #1209

name: Docker Image
on: [push]
jobs:
image:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Image
run: |
cd application
echo running on branch ${GITHUB_REF##*/}
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_TOKEN }} registry.webis.de
docker build --tag webis/tira-application:build-from-branch-${GITHUB_REF##*/} -f Dockerfile.application ..
docker tag webis/tira-application:build-from-branch-${GITHUB_REF##*/} registry.webis.de/code-lib/public-images/tira-application:build-from-branch-${GITHUB_REF##*/}
docker push registry.webis.de/code-lib/public-images/tira-application:build-from-branch-${GITHUB_REF##*/}