-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (90 loc) · 2.8 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
on: [push]
env:
PLAYWRIGHT_VERSION: 1.49.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta_debian11
uses: docker/metadata-action@v5
with:
images: |
sstc/headful-chromium
tags: |
type=raw,value=debian-11
- uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./debian-11/Dockerfile
tags: ${{ steps.meta_debian11.outputs.tags }}
build-args: |
PLAYWRIGHT_VERSION=${{env.PLAYWRIGHT_VERSION}}
- id: meta_debian12
uses: docker/metadata-action@v5
with:
images: |
sstc/headful-chromium
tags: |
type=raw,value=debian
type=raw,value=debian-12
- uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./debian-12/Dockerfile
tags: ${{ steps.meta_debian12.outputs.tags }}
build-args: |
PLAYWRIGHT_VERSION=${{env.PLAYWRIGHT_VERSION}}
- id: meta_ubuntu22
uses: docker/metadata-action@v5
with:
images: |
sstc/headful-chromium
tags: |
type=raw,value=ubuntu-22
- uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./ubuntu-22/Dockerfile
tags: ${{ steps.meta_ubuntu22.outputs.tags }}
build-args: |
PLAYWRIGHT_VERSION=${{env.PLAYWRIGHT_VERSION}}
- id: meta_ubuntu24
uses: docker/metadata-action@v5
with:
images: |
sstc/headful-chromium
tags: |
type=raw,value=latest
type=raw,value=ubuntu
type=raw,value=ubuntu-24
- uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./ubuntu-24/Dockerfile
tags: ${{ steps.meta_ubuntu24.outputs.tags }}
build-args: |
PLAYWRIGHT_VERSION=${{env.PLAYWRIGHT_VERSION}}
- uses: actions/checkout@v4
- uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
with:
destination_container_repo: sstc/headful-chromium
short_description: https://github.com/${{ github.repository }}
- uses: up9cloud/action-notify@master
if: cancelled() == false
env:
GITHUB_JOB_STATUS: ${{ job.status }}
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}