lolen
a9e745a26c
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 35s
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
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:
|
|
push: true
|
|
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:
|
|
push: true
|
|
file: ./Dockerfile
|
|
tags: ${{ steps.meta-second.outputs.tags }}
|
|
labels: ${{ steps.meta-second.outputs.labels }}
|