All checks were successful
Build-and-publish podman-in-docker / build-and-push (push) Successful in 38s
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Build-and-publish podman-in-docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Construct image metadata from commit
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: git.ratigorsk-12.ru/ratigorsk/podman-in-docker
|
|
|
|
- name: Docker Login
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.ratigorsk-12.ru
|
|
username: ${{vars.CONTAINER_REGISTRY_USER}}
|
|
password: ${{secrets.CONTAINER_REGISTRY_PASSWORD}}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: ${{github.event_name != 'pull_request'}}
|
|
tags: ${{steps.meta.outputs.tags}}
|
|
labels: ${{steps.meta.outputs.labels}}
|
|
build-args: |
|
|
VERSION=v5.7.1
|
|
REPO_MIRROR=${{vars.REPO_MIRROR}}
|