midou36o.github.io/.gitea/workflows/build.yaml

37 lines
1.1 KiB
YAML
Raw Normal View History

name: Svelte Website guild.
run-name: ${{ github.actor }} is building the website.
on:
push:
branches:
- 'svelte-stable'
jobs:
build:
name: 'Building the website'
runs-on: ubuntu-latest
steps:
2023-12-30 16:17:00 +05:30
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Set up QEMU
2023-12-30 18:08:08 +05:30
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
2023-12-30 18:08:08 +05:30
uses: docker/setup-buildx-action@v3
- name: 'Build:checkout'
2023-12-30 18:08:08 +05:30
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: git.projectsegfau.lt
username: midou
password: ${{ secrets.ACCESS_TOKEN }}
- name: 'Build:dockerimage'
2023-12-30 18:08:08 +05:30
uses: docker/build-push-action@v5
2023-12-30 17:08:31 +05:30
env:
ACTIONS_RUNTIME_TOKEN: '' # Workaround to some bug specific to gitea actions.
with:
tags: midou/midou36o.github.io:latest
context: '.'
push: true
no-cache: true
2023-12-30 16:46:37 +05:30
secrets: |
GIT_AUTH_TOKEN=${{ secrets.ACCESS_TOKEN }}