Build and publish interop image to dockerhub
@@ -11,12 +11,13 @@ jobs:
runs-on: ubuntu-18.04
steps:
- - uses: actions/checkout@v1
- - name: docker-build
- run: |
- cd interop
- docker build -t docker.pkg.github.com/ngtcp2/ngtcp2/ngtcp2-interop .
- - name: publish
- run: |
- docker login docker.pkg.github.com -u "nobody" -p "${{ secrets.GITHUB_TOKEN }}"
- docker push docker.pkg.github.com/ngtcp2/ngtcp2/ngtcp2-interop
+ - uses: actions/checkout@v2
+ - name: Build and publish interop docker image
+ uses: docker/build-push-action@v1
+ with:
+ path: interop
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ repository: ngtcp2/ngtcp2-interop
+ add_git_labels: true
+ tag_with_sha: true
