This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/.gitea/workflows/publish.yaml

42 lines
1.2 KiB
YAML
Raw Normal View History

2023-03-27 18:14:19 +00:00
name: Publish
2023-03-27 17:36:44 +00:00
on:
push:
branches:
- 'main'
jobs:
docker:
2023-03-27 19:23:06 +00:00
strategy:
matrix:
2023-03-27 21:00:45 +00:00
arch: ['git.fascinated.cc/fascinated/gitea-runner:ubuntu-latest']
2023-03-27 19:23:06 +00:00
git-version: ['2.38.4']
runs-on: ${{ matrix.arch }}
2023-03-27 21:17:49 +00:00
container: node:19-bullseye
2023-03-27 17:36:44 +00:00
steps:
2023-03-27 19:34:52 +00:00
- name: checkout
uses: https://github.com/actions/checkout@v3
2023-03-27 21:00:45 +00:00
#- name: Download docker
# if: steps.cache-docker.outputs.cache-hit != 'true'
# run: |
# wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \
# && tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \
# && rm -rf /tmp/*
2023-03-27 19:38:28 +00:00
2023-03-27 18:35:37 +00:00
- name: Set up Docker Buildx
2023-03-27 20:17:10 +00:00
uses: https://github.com/docker/setup-buildx-action@v2
2023-03-27 19:38:28 +00:00
2023-03-27 18:10:34 +00:00
- name: Login to Repo
2023-03-27 20:17:10 +00:00
uses: https://github.com/docker/login-action@v2
2023-03-27 17:36:44 +00:00
with:
registry: git.fascinated.cc
username: ${{ secrets.REPO_USERNAME }}
password: ${{ secrets.REPO_TOKEN }}
2023-03-27 19:38:28 +00:00
2023-03-27 18:05:53 +00:00
- name: Build and push
2023-03-27 17:36:44 +00:00
uses: docker/build-push-action@v4
with:
push: true
2023-03-27 19:56:46 +00:00
context: .
2023-03-27 21:17:49 +00:00
tags: git.fascinated.cc/fascinated/beatsaber-overlay:latest