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

35 lines
1.0 KiB
YAML
Raw Normal View History

2023-12-30 21:03:25 +05:30
name: Svelte Website build & push.
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 21:03:25 +05:30
- name: 'Build:checkout'
uses: actions/checkout@v4
- name: Set up docker
uses: papodaca/install-docker-action@main
- name: Set up QEMU
2023-12-30 21:03:25 +05:30
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
2024-01-06 19:03:16 +05:30
uses: docker/setup-buildx-action@v3
- 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 21:03:25 +05:30
uses: docker/build-push-action@v4
2023-12-30 17:08:31 +05:30
env:
ACTIONS_RUNTIME_TOKEN: '' # Workaround to some bug specific to gitea actions.
with:
2023-12-30 21:03:25 +05:30
tags: git.projectsegfau.lt/midou/midou36o.github.io:latest
context: '.'
2023-12-30 21:03:25 +05:30
file: ./Dockerfile
push: true