This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kameleon.git
The following commit(s) were added to refs/heads/main by this push: new 25c4302 chore: publish image to ghcr.io 25c4302 is described below commit 25c43028b669e27bd06f0b92c17862facd07d3da Author: Zoran Regvart <zo...@regvart.com> AuthorDate: Fri Jul 9 10:23:01 2021 +0200 chore: publish image to ghcr.io --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf5f110..870c699 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,10 @@ on: jobs: build: - runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - name: Checkout @@ -48,5 +50,6 @@ jobs: mvn package -f main -DskipTest \ -Dquarkus.container-image.build=true \ -Dquarkus.container-image.push=true \ - -Dquarkus.container-image.username=${{ secrets.DOCKERHUB_USERNAME }} \ - -Dquarkus.container-image.password=${{ secrets.DOCKERHUB_TOKEN }} + -Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}:latest \ + -Dquarkus.container-image.username=${{ github.actor }} \ + -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}