36 lines
883 B
YAML
Raw Normal View History

2023-11-10 09:56:47 +08:00
name: Gitea Actions CI Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches:
- "main"
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
2023-11-10 10:02:08 +08:00
-
name: Checkout
2023-11-10 09:56:47 +08:00
uses: actions/checkout@v3
2023-11-10 10:02:08 +08:00
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
2023-11-10 09:56:47 +08:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-11-10 10:02:08 +08:00
-
name: Build and push
uses: docker/build-push-action@v5
2023-11-10 09:56:47 +08:00
with:
context: .
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest