Files
huly-platform/foundations/stream/.github/workflows/docker-push.yaml
T
Denis Bykhov 6e77cbb762 Add 'foundations/stream/' from commit 'b7b6930b0992ae48f08d37745d5e6e5e26517337'
git-subtree-dir: foundations/stream
git-subtree-mainline: 328a7dc269
git-subtree-split: b7b6930b09
2025-11-26 23:06:55 +05:00

45 lines
1.1 KiB
YAML

---
name: Docker push
on:
workflow_dispatch:
inputs:
version:
description: 'Version tag for the image'
required: false
default: 'latest'
type: string
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Docker meta
id: metaci
uses: docker/metadata-action@v3
with:
images: hardcoreeng/stream:${{ inputs.version }}
tags: |
type=ref,event=pr
type=sha,prefix=
- name: "Build and push"
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: hardcoreeng/service_stream:${{ inputs.version }}