diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0da78f8..35eab68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build debug Docker image +name: Build members-platform Docker image on: - push @@ -9,7 +9,13 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'hacklabto/members-platform' steps: + - uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 + - run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - uses: docker/build-push-action@v2 with: # https://github.com/docker/build-push-action/issues/378