diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7622308fb..fbbdf93ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,12 @@ jobs: - uses: actions/checkout@v1 - name: Prepare Environment run: ${{ matrix.runs.prepare }} + - name: Log in to the Container registry + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Pull Dependencies run: ${{ matrix.runs.pull }} - name: Build ${{ matrix.name }} @@ -46,4 +52,8 @@ jobs: - name: Test ${{ matrix.name }} run: ${{ matrix.runs.test }} - name: '"docker images"' + run: $(${{ matrix.runs.images }} | grep -vi REPOSITORY | grep -vi librarytest | awk '{print "docker tag " $3 " ghcr.io/mikesplain/" $1 ":"$2}' | bash) + - name: '"docker images - retagged"' run: ${{ matrix.runs.images }} + - name: '"docker images - retagged"' + run: $(${{ matrix.runs.images }} | grep mikesplain | awk '{print "docker push " $1 ":" $2}' | bash)