updated workflow
This commit is contained in:
@@ -36,8 +36,16 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: Set Environment Variables
|
||||
run: |
|
||||
echo "sha_short=$(git rev-parse --short "$GITEA_SHA")" >> "$GITEA_ENV"
|
||||
- name: Print Env Vars
|
||||
echo $(git rev-parse --short ${{ gitea.sha }})
|
||||
echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV"
|
||||
- name: Show Environment Variables
|
||||
run: |
|
||||
echo "Branch: ${{ env.branch }}"
|
||||
echo "Sha: ${{ env.sha_short }}"
|
||||
echo "DOCKER_REPO_URL: ${{ vars.docker_repo_url }}"
|
||||
echo "REPOSITORY: ${{ gitea.repository }}"
|
||||
echo "COMMIT_SHA: ${{ env.sha_short }}"
|
||||
- name: Build and Push Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{vars.docker_repo_url}}/${{gitea.repository}}:latest
|
||||
|
||||
Reference in New Issue
Block a user