updated to use new dockerfile in root dir
This commit is contained in:
@@ -30,22 +30,44 @@ jobs:
|
|||||||
name: Build and Publish
|
name: Build and Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test]
|
needs: [test]
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
-
|
||||||
|
dockerfile: ./Dockerfile.web_ui
|
||||||
|
image: ${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui
|
||||||
|
# -
|
||||||
|
# dockerfile: ./model/Dockerfile
|
||||||
|
# image: ${{ vars.docker_repo_url }}/${{ gitea.repository }}/model
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
-
|
||||||
|
name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set Environment Variables
|
-
|
||||||
|
name: Set Environment Variables
|
||||||
run: |
|
run: |
|
||||||
echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV"
|
echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV"
|
||||||
- name: Show Environment Variables
|
-
|
||||||
|
name: Show Environment Variables
|
||||||
run: |
|
run: |
|
||||||
echo "DOCKER_REPO_URL: ${{ vars.docker_repo_url }}"
|
echo "DOCKER_REPO_URL: ${{ vars.docker_repo_url }}"
|
||||||
echo "REPOSITORY: ${{ gitea.repository }}"
|
echo "REPOSITORY: ${{ gitea.repository }}"
|
||||||
echo "COMMIT_SHA: ${{ env.sha_short }}"
|
echo "COMMIT_SHA: ${{ env.sha_short }}"
|
||||||
- name: Build and Push Image
|
-
|
||||||
|
name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ matrix.image }}
|
||||||
|
-
|
||||||
|
name: Build and Push Image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: ./web_ui/
|
context: .
|
||||||
|
file: ${{ matrix.dockerfile }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui:${{ env.sha_short }}
|
${{ matrix.image }}:${{ env.sha_short }}
|
||||||
${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui:latest
|
${{ matrix.image }}:latest
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user