Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 19s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
name: Deploy Container Image to Registry
|
|
on: ['push']
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.gnilebein.de
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REG_GITEA_PASSWORD }}
|
|
|
|
- name: Get Meta
|
|
id: meta
|
|
run: |
|
|
echo VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1) | tee -a $GITHUB_OUTPUT
|
|
echo IMAGE_CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | tee -a $GITHUB_OUTPUT
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: ./StableV2
|
|
file: StableV2/Dockerfile
|
|
pull: false
|
|
push: true
|
|
no-cache: true
|
|
build-args: |
|
|
VERSION=${{ steps.meta.outputs.VERSION }}
|
|
IMAGE_CREATED=${{ steps.meta.outputs.DATE }}
|
|
tags: |
|
|
${{ vars.DOCKER_REPO }}/${{ gitea.repository_owner }}/${{ vars.IMAGE_NAME }}
|
|
${{ vars.DOCKER_REPO }}/${{ gitea.repository_owner }}/${{ vars.IMAGE_NAME }}:${{ steps.meta.outputs.VERSION }} |