37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: node-16-bullseye
|
|
container:
|
|
image: ubuntu:act-22.04-philt3r
|
|
steps:
|
|
- name: get code
|
|
uses: actions/checkout@v3
|
|
- name: QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
driver-opts: image=moby/buildkit:buildx-stable-1-philt3r
|
|
- name: Login to Container Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: git.philt3r
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- name: Login to Container Registry x4m3rocks
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: registry-registry.y.z.x4m3.rocks
|
|
username: ${{ secrets.REGISTRY_X4M3_ROCKS_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_X4M3_ROCKS_PASSWORD }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
env:
|
|
ACTIONS_RUNTIME_TOKEN: ''
|
|
with:
|
|
push: true
|
|
tags: git.philt3r/${{ gitea.repository }}:latest,registry-registry.y.z.x4m3.rocks/${{ gitea.repository }}:latest
|
|
|