This repository has been archived on 2024-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/.gitea/workflows/rebuild.yml

39 lines
909 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Gitea container registry
uses: docker/login-action@v2
with:
registry: git.kucharczyk.xyz
username: lukas
password: ${{ secrets.GITEA_TOKEN}}
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: git.kucharczyk.xyz/containers/gitea:latest
env:
DOCKER_USERNAME: ${{ gitea.repository_owner }}
DOCKER_PASSWORD: ${{ secrets.GITEA_TOKEN}}