Add .gitea/workflows/example.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m12s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m12s
This commit is contained in:
parent
a3e882941d
commit
32d1aad38a
53
.gitea/workflows/example.yaml
Normal file
53
.gitea/workflows/example.yaml
Normal file
@ -0,0 +1,53 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: demo.gitea.com
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata for first APP
|
||||
id: meta-first
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: demo.gitea.com/{{ github.repository }}/first
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push Docker image for first APP
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: ./Dockerfile
|
||||
tags: ${{ steps.meta-first.outputs.tags }}
|
||||
labels: ${{ steps.meta-first.outputs.labels }}
|
||||
|
||||
- name: Extract Docker metadata for second APP
|
||||
id: meta-second
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: demo.gitea.com/{{ github.repository }}/second
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push Docker image for second APP
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: ./Dockerfile
|
||||
tags: ${{ steps.meta-second.outputs.tags }}
|
||||
labels: ${{ steps.meta-second.outputs.labels }}
|
Loading…
Reference in New Issue
Block a user