Building CC-Job-Image-Base #8
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 CC-Job-Image-Base | |
| run-name: Building CC-Job-Image-Base | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| environment: build | |
| permissions: | |
| contents: read | |
| packages: write | |
| env: | |
| platforms: linux/amd64,linux/arm64 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Docker-Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Setup QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: ${{ env.platforms }} | |
| - name: docker-auth | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| registry: ghcr.io | |
| - name: Set lowercase repository owner | |
| id: repo_owner_lower | |
| run: echo "::set-output name=lower_repo_owner::$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" | |
| - name: Build and Publish CC-Job-Image-Base | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| platforms: ${{ env.platforms }} | |
| tags: ghcr.io/${{ steps.repo_owner_lower.outputs.lower_repo_owner }}/cc-utils/job-image-base:latest | |
| file: Dockerfile.job-image-base |