Bump docker/login-action from 3.4.0 to 3.5.0 (#136) #321
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: Builder | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build devcontainer | |
| strategy: | |
| matrix: | |
| devcontainer: | |
| - "addons" | |
| - "supervisor" | |
| steps: | |
| - name: 📥 Checkout the repository | |
| uses: actions/[email protected] | |
| - name: 🏗 Set up QEMU | |
| uses: docker/[email protected] | |
| - name: 🏗 Set up Docker Buildx | |
| uses: docker/[email protected] | |
| - name: 🔓 Registry login | |
| if: github.event_name == 'push' | |
| uses: docker/[email protected] | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Get version of devcontainer | |
| id: get-version | |
| run: | | |
| echo "version=$(head -1 ./${{ matrix.devcontainer }}/version)" >> $GITHUB_OUTPUT | |
| echo "gitsha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: 🛠️ Build devcontainer (${{ matrix.devcontainer }}) | |
| uses: docker/[email protected] | |
| with: | |
| context: . | |
| file: ./${{ matrix.devcontainer }}/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| tags: | | |
| ghcr.io/${{ github.repository_owner }}/devcontainer:${{ steps.get-version.outputs.version }}-${{ matrix.devcontainer }} | |
| ghcr.io/${{ github.repository_owner }}/devcontainer:${{ matrix.devcontainer }} | |
| ghcr.io/${{ github.repository_owner }}/devcontainer:${{ matrix.devcontainer }}-${{ steps.get-version.outputs.gitsha }} | |
| push: ${{ github.event_name == 'push' }} | |