Skip to content

Bump docker/build-push-action from 7.2.0 to 7.3.0 #412

Bump docker/build-push-action from 7.2.0 to 7.3.0

Bump docker/build-push-action from 7.2.0 to 7.3.0 #412

Workflow file for this run

name: Builder
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build devcontainer
strategy:
matrix:
devcontainer:
- "apps"
- "supervisor"
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v7.0.0
- name: 🏗 Set up QEMU
uses: docker/setup-qemu-action@v4.1.0
- name: 🏗 Set up Docker Buildx
uses: docker/setup-buildx-action@v4.1.0
- name: 🔓 Registry login
if: github.event_name == 'push'
uses: docker/login-action@v4.2.0
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: Lowercase repository_owner
id: repository_owner
run: |
GH_REPOSITORY_OWNER="${{ github.repository_owner }}"
echo "lc_owner=${GH_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT
- name: 🛠️ Build devcontainer (${{ matrix.devcontainer }})
uses: docker/build-push-action@v7.3.0
with:
context: .
file: ./${{ matrix.devcontainer }}/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ steps.repository_owner.outputs.lc_owner }}/devcontainer:${{ steps.get-version.outputs.version }}-${{ matrix.devcontainer }}
ghcr.io/${{ steps.repository_owner.outputs.lc_owner }}/devcontainer:${{ matrix.devcontainer }}
ghcr.io/${{ steps.repository_owner.outputs.lc_owner }}/devcontainer:${{ matrix.devcontainer }}-${{ steps.get-version.outputs.gitsha }}
push: ${{ github.event_name == 'push' }}