Skip to content

Commit

Permalink
hack pushing for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 11, 2023
1 parent 4d25ff1 commit 59e6bc4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/semconvgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
run:
working-directory: semantic-conventions/
steps:
- uses: actions/checkout@v3
Expand All @@ -39,7 +39,7 @@ jobs:
run: pylint *.py src/
- name: Type checking (mypy)
run: mypy src/


build-and-publish-docker:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,3 +68,11 @@ jobs:
else
tag_and_push "${GITHUB_REF#"refs/tags/"}"
fi
- name: Push the Dev Docker image
if: startsWith(github.ref, 'refs/pull/243')
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
function tag_and_push {
docker tag semconvgen "otel/semconvgen:${1}" && docker push "otel/semconvgen:${1}"
}
tag_and_push "0.24.0-dev-pr-243"

0 comments on commit 59e6bc4

Please sign in to comment.