Skip to content

Merge pull request #71 from wayfarer3130/feat/add-skip-verify-for-upload #130

Merge pull request #71 from wayfarer3130/feat/add-skip-verify-for-upload

Merge pull request #71 from wayfarer3130/feat/add-skip-verify-for-upload #130

name: ReverseProxy Docker Image CI
on:
create:
push:
paths:
- 'ReverseProxy/**'
- '.github/workflows/ReverseProxy_docker_build_push.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
type: [ci-test, insecure, secure, letsencrypt]
steps:
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Extract branch name
if: startsWith(github.ref , 'refs/heads/')
shell: bash
run: echo "docker_tag=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
- name: Extract branch tag
if: startsWith(github.ref , 'refs/tags/')
shell: bash
run: echo "docker_tag=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
- name: Build and push
uses: docker/[email protected]
with:
context: ./ReverseProxy
file: ReverseProxy/${{ matrix.type }}/Dockerfile
platforms: linux/amd64
push: true
tags: osirixfoundation/kheops-reverse-proxy:${{ env.docker_tag }}-${{ matrix.type }}