Skip to content

Commit

Permalink
build args
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeindl committed Apr 9, 2024
1 parent 14aab8a commit f888d59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set env
run: export BRANCH=${BRANCH_NAME}
- run: echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
# - name: Set env
# run: export BRANCH=${BRANCH_NAME}
# - run: echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
- run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo ${BRANCH}
# - run: echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
# - run: echo ${BRANCH}

- uses: mr-smithers-excellent/docker-build-push@v6
name: push-container-image
with:
image: mega-backend
registry: ghcr.io
dockerfile: Containerfile
buildArgs: COMMIT=${{ env.COMMIT}}, BRANCH=${{ env.BRANCH}}, VERSION=${{ env.VERSION}}
buildArgs: COMMIT=${{ env.COMMIT}}, BRANCH=${{ env.BRANCH_NAME}}, VERSION=${{ env.COMMIT}}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f888d59

Please sign in to comment.