mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-04 03:11:44 +08:00
Fix github action
This commit is contained in:
5
.github/workflows/dev-latest.yml
vendored
5
.github/workflows/dev-latest.yml
vendored
@@ -8,12 +8,10 @@ jobs:
|
||||
latest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Enter directory
|
||||
run: |
|
||||
cd src
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Create Version info
|
||||
working-directory: ./src
|
||||
run: |
|
||||
echo "VERSION = '2.6.0-beta'" > module/__version__.py
|
||||
-
|
||||
@@ -30,6 +28,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
working-directory: ./src
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
|
||||
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
@@ -9,13 +9,11 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Enter directory
|
||||
run: |
|
||||
cd src
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Create Version info
|
||||
working-directory: ./src
|
||||
run: |
|
||||
echo "VERSION = '$GITHUB_REF_NAME'" > module/__version__.py
|
||||
- name: Docker meta
|
||||
@@ -39,6 +37,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
working-directory: ./src
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
|
||||
Reference in New Issue
Block a user