-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (56 loc) · 2.04 KB
/
docker-build-distro.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
---
# Copyright (C) 2021 Leandro Lisboa Penz <lpenz@lpenz.org>
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
name: docker-build-distro
on:
push:
branches-ignore:
- main
- devel
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- run: >
sudo apt-get update;
sudo apt-get install -y --no-install-recommends debootstrap
- run: >
docker build -t docker-debian-releases .;
docker run --rm -u 0 -v "${PWD}:$PWD" -w "$PWD" -e PERSONAL_TOKEN docker-debian-releases
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
- uses: docker/setup-qemu-action@v3.0.0
- run: sudo cp -Rd debootstrap_scripts/* /usr/share/debootstrap/scripts/
- id: branch
run: ./branch-info
- id: build
run: >
./docker-create-debian-image
-m "${{ steps.branch.outputs.mirror }}"
-i "${{ secrets.DOCKERHUB_USERNAME }}/${{ steps.branch.outputs.image }}"
"${{ steps.branch.outputs.dist }}"
"${{ steps.branch.outputs.arch }}"
- uses: docker/login-action@v3.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: docker push "${{ secrets.DOCKERHUB_USERNAME }}/${{ steps.branch.outputs.image }}"
- run: >
./dockerhub-set-descriptions
"${{ secrets.DOCKERHUB_USERNAME }}/${{ steps.branch.outputs.image }}"
"${{ steps.build.outputs.description }}"
"Automatically updated via https://github.com/lpenz/docker-debian-releases/"
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
update-status-page:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: benc-uk/workflow-dispatch@v1.2.3
with:
workflow: status-page-deploy
token: ${{ secrets.PERSONAL_TOKEN }}