Add human-friendly URL aliases for global tags and payloads #24
Workflow file for this run
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: Build and Push Docker Image on Release | |
| on: | |
| push: | |
| tags: | |
| - '*' # triggers on any new tag | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1️⃣ Checkout the repository | |
| - uses: actions/checkout@v4 | |
| # 2️⃣ Log in to GitHub Container Registry | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| # 3️⃣ Build and push the Docker image | |
| - name: Build and push Docker image | |
| run: | | |
| REPO_LOWER=$(echo "${GITHUB_REPOSITORY_OWNER}" | tr '[:upper:]' '[:lower:]') | |
| echo "GitHub release/tag: $GITHUB_REF_NAME" | |
| docker build . \ | |
| --file Dockerfile_release \ | |
| --tag ghcr.io/${REPO_LOWER}/nopayloaddb:${GITHUB_REF_NAME} | |
| docker push ghcr.io/${REPO_LOWER}/nopayloaddb:${GITHUB_REF_NAME} |