add upload of the nightly docker image into github packages
@@ -39,10 +39,19 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PSW }}
+ - name: Log in to the Container registry
+ if: ${{ env.date_diff <= 0 }} # last commit < 24h ago
+ uses: docker/login-action@v1
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
if: ${{ env.date_diff <= 0 }} # last commit < 24h ago
uses: docker/build-push-action@v2
with:
context: docker/nightly
push: true
- tags: ${{ secrets.DOCKERHUB_USERNAME }}/avalanche-nightly:latest
+ tags: |
+ ${{ secrets.DOCKERHUB_USERNAME }}/avalanche-nightly:latest
+ ghcr.io/${{ github.repository_owner }}/avalanche-nightly:latest
\ No newline at end of file
