Reset gitea actions
All checks were successful
Push image to registry / build-image (push) Successful in 8m8s
All checks were successful
Push image to registry / build-image (push) Successful in 8m8s
This commit is contained in:
@ -1,10 +0,0 @@
|
|||||||
name: Gitea Actions Demo
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Explore-Gitea-Actions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
||||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
||||||
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
23
.gitea/workflows/pushImage.yaml
Normal file
23
.gitea/workflows/pushImage.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Push image to registry
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.matthiasg.dev
|
||||||
|
username: ninluc
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
run: |
|
||||||
|
docker build -t git.matthiasg.dev/ninluc/datbrowser:latest .
|
||||||
|
docker push git.matthiasg.dev/ninluc/datbrowser:latest
|
Reference in New Issue
Block a user