38 lines
944 B
YAML
38 lines
944 B
YAML
|
name: Build And Publish Docker
|
||
|
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
|
||
|
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
|
||
|
uses: docker/build-push-action@v4
|
||
|
with:
|
||
|
builder: ${{ steps.buildx.outputs.name }}
|
||
|
context: ./bitpart/
|
||
|
file: ./bitpart/Dockerfile
|
||
|
platforms: linux/amd64
|
||
|
push: true
|
||
|
tags: |
|
||
|
fung.uy/mycosystems/bitpart:latest
|
||
|
fung.uy/mycosystems/bitpart:1.0.0
|