Add response-signer plugin to KONG_PLUGINS #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dockerfiles | |
on: | |
push: | |
branches: [ images/* ] | |
workflow_dispatch: {} | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
kong3: | |
env: | |
DOCKER_ITEM: sdx-access-point | |
PREFIX: 3.9- | |
name: kong3 image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- id: slug | |
name: Get short SHA | |
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" | |
- name: Login to GHCR | |
uses: docker/login-action@v1 | |
with: | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
- uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
path: /tmp/.buildx-cache | |
restore-keys: ${{ runner.os }}-buildx- | |
- id: buildx | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- id: meta | |
name: Docker meta | |
uses: docker/metadata-action@v1 | |
with: | |
images: ${{ env.REGISTRY }}/bcgov/aps-devops/${{env.DOCKER_ITEM}} | |
- name: Build image | |
uses: docker/build-push-action@v2 | |
with: | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
context: . | |
file: sdx/image/Dockerfile | |
load: true | |
tags: ${{ env.REGISTRY }}/bcgov/aps-devops/${{env.DOCKER_ITEM}}:${{env.PREFIX}}${{ | |
steps.slug.outputs.sha8 }} | |
- name: Push image | |
run: docker push ${{ env.REGISTRY }}/bcgov/aps-devops/${{env.DOCKER_ITEM}}:${{env.PREFIX}}${{ | |
steps.slug.outputs.sha8 }} |