Skip to content

[#61664] WIP: devcontainer.json: Update image #50

[#61664] WIP: devcontainer.json: Update image

[#61664] WIP: devcontainer.json: Update image #50

name: Prebuild lxqt docker image
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
name: BUILD
runs-on: ubuntu-22.04
timeout-minutes: 600
steps:
- uses: actions/checkout@v4
- name: Set environment variables
run: echo "IMAGE=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):lxqt" >> $GITHUB_ENV
- name: Build LXQt
run: |
docker build -t ${{ env.IMAGE }} -f tools/codespace/Dockerfile-lxqt .
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: gha
password: ${{ github.token }}
- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request'
run: docker push ${{ env.IMAGE }}