Merge pull request #21046 from hrydgard/achievement-size-fixes #3829
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Docker Layer | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - "v*.*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate Docker image metadata | |
| id: metadata | |
| run: | | |
| if [[ ${GITHUB_REF_TYPE} == tag ]]; then | |
| echo "tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT | |
| else | |
| echo "tag=latest" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Login to GitHub registry | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| registry: ghcr.io | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}:${{ steps.metadata.outputs.tag }} |