28 lines
656 B
YAML
28 lines
656 B
YAML
name: Build & Push
|
|
|
|
run-name: Build and push OCI image
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build-push:
|
|
name: Build & Push
|
|
runs-on: debian-docker
|
|
env:
|
|
GITEA_REGISTRY: gitea.antoine-langlois.net
|
|
|
|
steps:
|
|
- name: Log into Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.GITEA_REGISTRY }}
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Build & push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
tags: ${{ env.GITEA_REGISTRY }}/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest
|