Fix github action

This commit is contained in:
EstrellaXD
2023-03-14 23:23:14 +08:00
parent df9ebc02e4
commit 405458aba5
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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: .