Compare commits

...

4 Commits

Author SHA1 Message Date
lab
fb3b248014 fix: remove steps echos 2023-11-10 10:11:27 +08:00
lab
59ed3387a0 fix: github workflows syntax 2023-11-10 10:09:12 +08:00
lab
9f2876f8a2 fix: gihub workflow usage 2023-11-10 10:03:31 +08:00
lab
dd48a9ebf5 feat: add github workflows 2023-11-10 09:56:47 +08:00

42
.github/workflows/ci-demo.yaml vendored Normal file
View File

@ -0,0 +1,42 @@
name: Github Actions CI Demo
run-name: ${{ github.actor }} is testing out Github Actions 🚀
on:
push:
branches:
- "main"
jobs:
Explore-Github-Actions:
runs-on: ubuntu-latest
steps:
-
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
-
run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Github!"
-
run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
-
name: Checkout
uses: actions/checkout@v3
-
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
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest