2022-11-10 09:53:02 +01:00
|
|
|
name: Build devcontainer image
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- .devcontainer/**
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 1 * *'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- .devcontainer/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-18 09:32:31 +02:00
|
|
|
- uses: actions/checkout@v4.2.1
|
2022-11-10 09:53:02 +01:00
|
|
|
- name: Log in to the GitHub container registry
|
2024-10-19 10:42:09 +02:00
|
|
|
uses: docker/login-action@v3.3.0
|
2022-11-10 09:53:02 +01:00
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up QEMU
|
2024-07-06 11:52:27 +02:00
|
|
|
uses: docker/setup-qemu-action@v3.1.0
|
2022-11-10 09:53:02 +01:00
|
|
|
- name: Set up Docker Buildx
|
2024-07-05 12:53:17 +02:00
|
|
|
uses: docker/setup-buildx-action@v3.4.0
|
2022-11-10 09:53:02 +01:00
|
|
|
- name: Build and Push
|
2024-10-01 16:22:40 +02:00
|
|
|
uses: docker/build-push-action@v6.9.0
|
2022-11-10 09:53:02 +01:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: .devcontainer/Dockerfile
|
|
|
|
tags: ghcr.io/${{ github.repository_owner }}/devcontainer:addons
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
platforms: linux/amd64,linux/arm64
|