Skip to content

Commit

Permalink
var
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujstor committed May 8, 2024
1 parent 2d0472d commit 73068ce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,28 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Install jq & yq
- name: Install yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
- name: Run docker tag sh and export var form config.yml
run: |
./docker_tag.sh
- name: Debug
run: |
cat .env
- name: Load variables from .env file
run: |
export $(grep -v '^#' .env | xargs)
- name: Debug
run: |
DOCKER_HUB_USERNAME="$DOCKER_HUB_USERNAME"
DOCKER_REPO_NAME="$DOCKER_REPO_NAME"
NEW_TAG="$NEW_TAG"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.DOCKER_HUB_USERNAME }}/${{ env.DOCKER_REPO_NAME }}:${{ env.NEW_TAG }}
tags: $DOCKER_HUB_USERNAME/$DOCKER_REPO_NAME:$NEW_TAG

0 comments on commit 73068ce

Please sign in to comment.