forked from ROCm/dyninst
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.28 KB
/
dev-containers.yaml
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
54
55
56
57
name: Build and Deploy Development Containers
on:
push:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
get-oses:
runs-on: ubuntu-latest
outputs:
all: ${{ steps.all.outputs.all }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: all
uses: ./.github/actions/os-versions
dev-containers:
runs-on: ubuntu-latest
needs: get-oses
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(needs.get-oses.outputs.all) }}
permissions:
packages: write
name: Update dev containers
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GHCR Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
shell: bash
run: |
set -ex
base="ghcr.io/dyninst/amd64/${{ matrix.os }}-base:latest"
dev="ghcr.io/dyninst/amd64/${{ matrix.os }}:latest"
# Grab the respective base container to update cache
docker pull $base
docker build -f docker/Dockerfile -t ${dev} --build-arg base=${base} --build-arg build_jobs=2 .
docker push ${dev}