push image to github packages
@@ -14,7 +14,16 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- - name: build and push
+ - name: build and push to github packages
+ uses: docker/build-push-action@v1
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ tag_with_ref: true
+ tag_with_sha: false
+
+ - name: build and push to docker hub
uses: docker/build-push-action@v1
with:
repository: projecteru2/core
@@ -23,7 +32,7 @@ jobs:
tag_with_ref: true
tag_with_sha: false
- - name: "[debug version] build and push"
+ - name: "[debug version] build and push to docker hub"
uses: docker/build-push-action@v1
with:
build_args: KEEP_SYMBOL=1
@@ -31,3 +40,12 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: ${{ github.sha }}-debug
+
+ - name: "[debug version] build and push to github packages"
+ uses: docker/build-push-action@v1
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ build_args: KEEP_SYMBOL=1
+ tags: ${{ github.sha }}-debug
