Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
f5db84b682 | |||
9c6342b539 | |||
cc91978e4e | |||
939afef1dd | |||
21fedd0213 | |||
5d936d280d | |||
0933761ade | |||
1fa447348f | |||
b86c108082 | |||
6199c82342 | |||
67d07f2685 | |||
9fa9158fc5 | |||
0652ce10ab |
@ -7,5 +7,8 @@ steps:
|
||||
repo: registry.kucharczyk.xyz/gitea
|
||||
tags: latest
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/*
|
||||
event:
|
||||
- push
|
||||
- cron
|
||||
exclude:
|
||||
- pull_request
|
38
.gitea/workflows/rebuild.yml
Normal file
38
.gitea/workflows/rebuild.yml
Normal file
@ -0,0 +1,38 @@
|
||||
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: ${{ gitea.actor }}
|
||||
password: ${{ secrets.LOGIN_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.LOGIN_TOKEN}}
|
Reference in New Issue
Block a user