From b3b8d61d0ddc950f73191e746d373d8cc7b9ee7d Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil <miroslav.kratochvil@uni.lu> Date: Mon, 7 Feb 2022 10:15:09 +0100 Subject: [PATCH] push the ghcr with docker action --- .github/workflows/docker.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cc8702644..5e3924eab 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -38,8 +38,16 @@ jobs: push: true tags: lcsbbiocore/cobrexa.jl:latest - - name: Build and push to GHCR - uses: macbre/push-to-ghcr@master + - name: Log in to the Container registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker images + uses: docker/build-push-action@v2 with: - image_name: ${{ env.DOCKER_IMAGE_NAME }} - github_token: ${{ secrets.GITHUB_TOKEN }} + context: . + push: true + tags: ${{ env.DOCKER_IMAGE_NAME }}:latest -- GitLab