updated workflow
pipeline / Test (push) Successful in 54s
pipeline / Show (push) Successful in 4s
CI Pipeline / Test (pull_request) Successful in 50s
CI Pipeline / Build and Publish (pull_request) Successful in 23s

This commit is contained in:
Brian Bjarke Jensen
2024-02-25 17:03:35 +01:00
parent 0922f5ee35
commit c9cd778f31
+12 -4
View File
@@ -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