ministream/.gitea/workflows/release-nightly.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2023-12-06 02:54:46 +00:00
name: release-nightly
on:
push:
2023-12-06 02:57:25 +00:00
branches: [ master ]
2023-12-06 02:54:46 +00:00
env:
REGISTRY: git.t-juice.club
IMAGE_NAME: ${{ gitea.repository }}
2023-12-06 22:43:47 +00:00
DOCKER_TAG: nightly
2023-12-06 02:54:46 +00:00
jobs:
release-image:
runs-on: ubuntu-latest
2023-12-06 22:39:40 +00:00
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
2023-12-06 02:54:46 +00:00
env:
DOCKER_ORG: torjus
DOCKER_TAG: nightly
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
submodules: true
2023-12-06 03:10:38 +00:00
github-server-url: 'https://git.t-juice.club'
# ssh-known-hosts: "{{ secret.SSH_KNOWN_HOSTS }}"
# ssh-key: "{{ secret.SSH_KEY }}"
2023-12-06 02:54:46 +00:00
2023-12-06 22:32:08 +00:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
2023-12-06 02:54:46 +00:00
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to git.t-juice.club registry
uses: docker/login-action@v3
with:
registry: git.t-juice.club
username: ${{ gitea.actor }}
2023-12-06 03:10:38 +00:00
password: ${{ secrets.GITEA_TOKEN }}
2023-12-06 02:54:46 +00:00
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
push: true
tags: |
2023-12-06 22:43:47 +00:00
${{ env.REGISTRY }}/${{ gitea.repository }}:${{ env.DOCKER_TAG }}