diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 47843b77..c45ad154 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -60,12 +60,12 @@ jobs: - name: Write version to file run: echo "${{ github.ref_name }}" >> static/version.txt - # - name: Docker Login to GitHub Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx id: buildx @@ -80,7 +80,7 @@ jobs: cache-to: type=gha,scope=cal-itp,mode=max context: . file: Dockerfile - push: false + push: true tags: | ghcr.io/${{ github.repository }}:${{ github.ref_type != 'tag' && github.ref_name || contains(github.ref, '-rc') && 'test' || 'prod' }} ghcr.io/${{ github.repository }}:${{ github.ref_name }}