Skip to content

Remove references to entrypoint scripts. #20

Remove references to entrypoint scripts.

Remove references to entrypoint scripts. #20

name: Publish docker images
on:
push:
tags:
- v*.*.*
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Extract version
run: echo VERSION=${GITHUB_REF#refs/tags/v*} >> $GITHUB_ENV
- name: Check output
env:
VERSION: ${{ env.VERSION }}
run: |
echo $VERSION
echo ${{ env.VERSION }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PW }}
- name: Create Hyper image tag
id: meta_hyper
uses: docker/metadata-action@v3
with:
images: kiprotect/hyper
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build Hyper
uses: docker/[email protected]
with:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Hyper.dockerfile
tags: ${{ steps.meta_hyper.outputs.tags }}
push: true
labels: |
kiprotect.hyper.image.revision=${{ github.sha }}
- name: Create sd image tag
id: meta_sd
uses: docker/metadata-action@v3
with:
images: kiprotect/hyper-sd
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build sd
uses: docker/[email protected]
with:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Sd.dockerfile
tags: ${{ steps.meta_sd.outputs.tags }}
push: true
labels: |
kiprotect.hyper-sd.image.revision=${{ github.sha }}
- name: Create proxy image tag
id: meta_proxy
uses: docker/metadata-action@v3
with:
images: kiprotect/hyper-proxy
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build proxy
uses: docker/[email protected]
with:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Proxy.dockerfile
tags: ${{ steps.meta_proxy.outputs.tags }}
push: true
labels: |
kiprotect.hyper-proxy.image.revision=${{ github.sha }}