web-ci/.github/workflows/build.yaml
brooke e0b47a6a61
All checks were successful
Build And Publish Docker / build-latest (push) Successful in 2h23m19s
Update .github/workflows/build.yaml
2025-03-19 15:23:20 -04:00

42 lines
1 KiB
YAML

name: Build And Publish Docker
on:
push:
branches:
- "master"
jobs:
build-latest:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: apt update && apt install iptables -y
- 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:
registry: fung.uy
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
build-args: |
HUGO_VERSION=0.138.0
NODE_VERSION=22.5.0
tags: |
fung.uy/mycosystems/web-ci:latest
fung.uy/mycosystems/web-ci:0.138.0