Skip to content

Bump shibboleth-sp-nginx to Debian 12 (#181) #19

Bump shibboleth-sp-nginx to Debian 12 (#181)

Bump shibboleth-sp-nginx to Debian 12 (#181) #19

# Generated by cdkactions. Do not modify
# Generated as part of the 'shibboleth' stack.
name: Publish shibboleth-sp-nginx
on:
push:
paths:
- docker/shibboleth-sp-nginx/**
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
name: Set version
run: echo "::set-output name=version::$(cat docker/shibboleth-sp-nginx/VERSION.txt)"
outputs:
version: ${{ steps.version.outputs.version }}
publish-shibboleth-sp-nginx:
name: Publish shibboleth-sp-nginx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: buildx-publish-shibboleth-sp-nginx
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build/Publish
uses: docker/build-push-action@v2
with:
context: docker/shibboleth-sp-nginx
file: docker/shibboleth-sp-nginx/Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
cache-from: type=local,src=/tmp/.buildx-cache,type=registry,ref=pennlabs/shibboleth-sp-nginx:latest
cache-to: type=local,dest=/tmp/.buildx-cache
tags: pennlabs/shibboleth-sp-nginx:latest,pennlabs/shibboleth-sp-nginx:${{ needs.version.outputs.version }}
needs: version