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
Raw Normal View History

name: Build and Push Docker Image
on:
push:
branches:
- main
2023-09-10 13:21:13 +00:00
jobs:
build-and-push:
2023-09-10 13:21:13 +00:00
runs-on: ubuntu-latest
2023-09-11 15:31:31 +00:00
container:
image: catthehacker/ubuntu:act-latest
2023-09-10 13:21:13 +00:00
steps:
- name: Checkout Repository
2023-09-10 13:21:13 +00:00
uses: actions/checkout@v3
- name: Set up Docker Buildx
2023-09-11 15:24:33 +00:00
uses: docker/setup-buildx-action@v2
2023-09-11 15:45:00 +00:00
- name: Login to Gitea container registry
2023-09-11 15:24:33 +00:00
uses: docker/login-action@v2
with:
2023-09-11 15:37:06 +00:00
registry: git.kucharczyk.xyz
2023-09-11 15:45:00 +00:00
username: lukas
password: ${{ secrets.LOGIN_TOKEN}}
2023-09-11 15:24:33 +00:00
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
2023-09-11 15:39:44 +00:00
tags: git.kucharczyk.xyz/containers/gitea:latest
env:
DOCKER_USERNAME: ${{ gitea.repository_owner }}
DOCKER_PASSWORD: ${{ secrets.LOGIN_TOKEN}}