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

38 lines
910 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:24:33 +00:00
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ gitea.repository_owner }}
password: ${{ secrets.GITEA_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
tags: git.kucharczyk.xyz/${{ gitea.repository_owner }}/containers/gitea:latest
env:
DOCKER_USERNAME: ${{ gitea.repository_owner }}
DOCKER_PASSWORD: ${{ secrets.GITEA_TOKEN}}