2025-03-17 00:10:05 -04:00
|
|
|
name: Build And Publish Docker
|
|
|
|
|
|
|
|
on:
|
2025-03-17 00:13:37 -04:00
|
|
|
workflow_dispatch:
|
2025-03-17 00:10:05 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build-latest:
|
2025-03-17 00:18:23 -04:00
|
|
|
runs-on: debian-node
|
2025-03-17 00:10:05 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2025-03-17 00:18:23 -04:00
|
|
|
- name: Install deps
|
|
|
|
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
|
|
|
|
2025-03-17 00:10:05 -04:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@master
|
|
|
|
|
|
|
|
- name: Login to Self-Hosted Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
2025-03-17 00:18:23 -04:00
|
|
|
registry: git.myco.systems
|
2025-03-17 00:10:05 -04:00
|
|
|
username: ${{ secrets.MYCO_REGISTRY_USER }}
|
|
|
|
password: ${{ secrets.MYCO_PERSONAL_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and Push Extended Version
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
context: ./
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64
|
|
|
|
push: true
|
|
|
|
tags: |
|
2025-03-17 00:18:23 -04:00
|
|
|
git.myco.systems/mycosystems/web-ci:latest
|