-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 1.91 KB
/
Copy pathdevelopment-image.yml
File metadata and controls
67 lines (62 loc) · 1.91 KB
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
58
59
60
61
62
63
64
65
66
67
name: Development image
on:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: development-image-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- run: npm test
- run: npm run test:integration
- run: docker build -t container-pilot:development-test .
publish:
needs: test
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/deepzone/container-pilot
tags: |
type=raw,value=edge
type=sha,prefix=sha-
labels: |
org.opencontainers.image.title=Container Pilot
org.opencontainers.image.description=Controlled Docker updates with health validation and rollback
org.opencontainers.image.vendor=NoiSens Media
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.version=edge
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=MIT
- uses: docker/build-push-action@v7
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max