38 lines
926 B
YAML
38 lines
926 B
YAML
version: "1"
|
|
name: Publish Docker Image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.altaiar.dev
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
git.altaiar.dev/${{ gitea.repository }}:${{ gitea.ref_name }}
|
|
git.altaiar.dev/${{ gitea.repository }}:latest
|
|
build-args: |
|
|
APP_VERSION=${{ gitea.ref_name }}
|
|
labels: |
|
|
org.opencontainers.image.version=${{ gitea.ref_name }}
|