All checks were successful
Build and Publish registry cleaner / publish (push) Successful in 48s
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Build and Publish registry cleaner
|
|
run-name: ${{ gitea.actor }} is runs ci pipeline
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- name: Set up Docker Buildx
|
|
uses: https://github.com/docker/setup-buildx-action@v3
|
|
env:
|
|
DOCKER_HOST: unix:///var/run/docker.sock
|
|
with:
|
|
config-inline: |
|
|
[registry."docker.office.clintonambulance.com"]
|
|
- name: Log in to Docker Registry
|
|
uses: https://github.com/docker/login-action@v3
|
|
with:
|
|
registry: docker.office.clintonambulance.com
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push Docker image
|
|
uses: https://github.com/docker/build-push-action@v5
|
|
env:
|
|
DOCKER_HOST: unix:///var/run/docker.sock
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/arm64
|
|
tags: |
|
|
docker.office.clintonambulance.com/registry-cli:${{ gitea.sha }}
|
|
docker.office.clintonambulance.com/registry-cli:latest
|