diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 190948a..0bd5e52 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -8,6 +8,17 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v3 + - name: Preparation step + run: | + echo "REPOSITORY_OWNER_LC=${REPOSITORY_OWNER,,}" >> ${GITHUB_ENV} + env: + REPOSITORY_OWNER: '${{ github.repository_owner }}' + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ env.REPOSITORY_OWNER_LC }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build the image run: docker build --target cli --tag ghcr.io/${{ env.REPOSITORY_OWNER_LC }}/arcan-2-cli-trial:latest . - name: Push the image