Fix actions maybe?
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "content/**"
|
||||
- "static/**"
|
||||
- "templates/**"
|
||||
# paths:
|
||||
# - "content/**"
|
||||
# - "static/**"
|
||||
# - "templates/**"
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
@@ -19,13 +19,13 @@ jobs:
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
|
||||
-
|
||||
name: Checkout the git repo...
|
||||
uses: actions/checkout@v3
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
-
|
||||
name: Set up docker buildx...
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to gitea registry
|
||||
uses: docker/login-action@v3
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.raer.me
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
@@ -51,14 +51,14 @@ jobs:
|
||||
run: 7z a -mx=9 ./artifact.7z build
|
||||
-
|
||||
name: Upload artifact...
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
with:
|
||||
name: artifact_${{ steps.date.outputs.date }}
|
||||
path: ./artifact.7z
|
||||
retention-days: 7
|
||||
-
|
||||
name: Build and push docker image to gitea package store
|
||||
uses: docker/build-push-action@v5
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user