Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
driver-deploy-2 committed Jan 25, 2024
1 parent a9a36c3 commit 2b03d85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set enviroment
shell: bash
run: |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -28,7 +34,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/l3crisis:nl_$(date +%s)
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/l3crisis:nl_${{ env.branch }}_${{ env.sha_short }}

# build:

Expand Down

0 comments on commit 2b03d85

Please sign in to comment.