All checks were successful
Build SMS Gateway / Build image (push) Successful in 19s
40 lines
1000 B
YAML
40 lines
1000 B
YAML
name: Build SMS Gateway
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
env:
|
|
REGISTRY: git.realmanual.ru
|
|
IMAGE_PREFIX: ${{ gitea.repository }}
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
build:
|
|
name: Build image
|
|
runs-on: ubuntu-22.04
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Read Version
|
|
id: version
|
|
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT
|
|
- name: Log in to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: ./
|
|
file: ./Dockerfile
|
|
push: true
|
|
tags: |
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/kb-admin:${{ steps.version.outputs.VERSION }}
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/kb-admin:latest
|
|
|