-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.58 KB
/
prebuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Prebuild Devcontainer
on:
# This workflow runs on pushes to the main branch and pull requests
# when the .devcontainer folder is modified or the .dockerignore file
# is modified.
push:
branches:
- main
paths:
- .devcontainer/**
- .dockerignore
- .github/workflows/prebuild.yml
pull_request:
paths:
- .devcontainer/**
- .dockerignore
- .github/workflows/prebuild.yml
permissions:
packages: write
jobs:
prebuild-devcontainer:
runs-on: ubuntu-24.04
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3.6.0
# Set Docker buildx up for container build
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2.10.0
# Log into GitHub Container Registry (GHCR) to store the image
- name: Log into GitHub Container Registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor || 'petersellars' }}
password: ${{ secrets.GITHUB_TOKEN }}
# Pre-build the container image
- name: Pre-build the container image
uses: devcontainers/ci@v0.3.1900000292
with:
imageName: ghcr.io/catosplace-devcontainers/engineering-base
cacheFrom: ghcr.io/catosplace-devcontainers/engineering-base
push: always