Skip to content

Commit

Permalink
A github action which should build two images
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarko committed Dec 14, 2023
1 parent 42f3afc commit ecd94b4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ecd94b4

Please sign in to comment.