From 0b3b9190da8f941099ae1bd73deca92509a47bc9 Mon Sep 17 00:00:00 2001 From: ili16 <34253987+ili16@users.noreply.github.com> Date: Mon, 25 Dec 2023 12:05:19 +0100 Subject: [PATCH] Create main github actions workflow --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..58bb6f6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Docker Build and Push + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: | + docker build -t registry.tech4comp.dbis.rwth-aachen.de/rwthacis/modernizer:latest + - name: Push to registry + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PW: ${{ secrets.DOCKER_PW }} + run: | + docker login -u $DOCKER_USERNAME -p $DOCKER_PW registry.tech4comp.dbis.rwth-aachen.de + docker push registry.tech4comp.dbis.rwth-aachen.de/rwthacis/modernizer:latest