This commit is contained in:
38
.gitea/workflows/build.yaml
Normal file
38
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
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: .
|
||||
file: frontend/Dockerfile
|
||||
push: true
|
||||
platforms: linux/arm64
|
||||
tags: |
|
||||
docker.office.clintonambulance.com/registry-cli:${{ gitea.sha }}
|
||||
docker.office.clintonambulance.com/registry-cli:latest
|
||||
Reference in New Issue
Block a user