From ecd94b46c1ad1869f287f9f42b842a47eac9b3f3 Mon Sep 17 00:00:00 2001 From: Ondrej Kosarko Date: Thu, 14 Dec 2023 11:49:14 +0100 Subject: [PATCH] A github action which should build two images --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..be7f0a8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push nginx + uses: docker/build-push-action@v5 + with: + file: ./Dockerfile.nginx + push: true + tags: ghcr.io/ufal/dockerized-nginx-with-shibboleth/nginx-shib:latest + - + name: Build and push shibboleth + uses: docker/build-push-action@v5 + with: + file: ./Dockerfile.shibboleth + push: true + tags: ghcr.io/ufal/dockerized-nginx-with-shibboleth/shibboleth:latest \ No newline at end of file