|
1 | 1 | --- |
2 | 2 | name: Debian Mainline |
3 | | -"on": |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 0 * * 6" |
4 | 6 | workflow_dispatch: |
5 | 7 | jobs: |
6 | 8 | core: |
|
9 | 11 | steps: |
10 | 12 | - name: Check out the codebase |
11 | 13 | uses: actions/checkout@v3 |
| 14 | + |
12 | 15 | - name: Set up QEMU |
13 | 16 | uses: docker/setup-qemu-action@v1 |
| 17 | + |
14 | 18 | - name: Set up Docker Buildx |
15 | 19 | uses: docker/setup-buildx-action@v1 |
| 20 | + |
16 | 21 | - name: Login to Docker Hub |
17 | 22 | uses: docker/login-action@v1 |
18 | 23 | with: |
19 | 24 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
20 | 25 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 26 | + |
21 | 27 | - name: Parse NGINX mainline version |
22 | 28 | id: version |
23 | 29 | run: | |
24 | 30 | echo "::set-output name=major::$(cat mainline/debian/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $1 }')" |
25 | 31 | echo "::set-output name=minor::$(cat mainline/debian/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $2 }')" |
26 | 32 | echo "::set-output name=patch::$(cat mainline/debian/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $3 }')" |
| 33 | +
|
27 | 34 | - name: Build and push NGINX mainline Debian image |
28 | 35 | uses: docker/build-push-action@v2 |
29 | 36 | with: |
30 | | - platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/mips64le, linux/ppc64le, linux/s390x |
| 37 | + platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x |
31 | 38 | context: "{{ defaultContext }}:mainline/debian" |
32 | 39 | tags: nginxinc/nginx-unprivileged:${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}, nginxinc/nginx-unprivileged:mainline, nginxinc/nginx-unprivileged:1, nginxinc/nginx-unprivileged:${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}, nginxinc/nginx-unprivileged:latest |
33 | | - push: false |
| 40 | + push: true |
| 41 | + |
34 | 42 | perl: |
35 | 43 | name: Build Debian perl NGINX mainline Docker image |
36 | 44 | runs-on: ubuntu-20.04 |
37 | 45 | steps: |
38 | 46 | - name: Check out the codebase |
39 | 47 | uses: actions/checkout@v3 |
| 48 | + |
40 | 49 | - name: Set up QEMU |
41 | 50 | uses: docker/setup-qemu-action@v1 |
| 51 | + |
42 | 52 | - name: Set up Docker Buildx |
43 | 53 | uses: docker/setup-buildx-action@v1 |
| 54 | + |
44 | 55 | - name: Login to Docker Hub |
45 | 56 | uses: docker/login-action@v1 |
46 | 57 | with: |
47 | 58 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
48 | 59 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 60 | + |
49 | 61 | - name: Parse NGINX mainline version |
50 | 62 | id: version |
51 | 63 | run: | |
52 | 64 | echo "::set-output name=major::$(cat mainline/debian-perl/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $1 }')" |
53 | 65 | echo "::set-output name=minor::$(cat mainline/debian-perl/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $2 }')" |
54 | 66 | echo "::set-output name=patch::$(cat mainline/debian-perl/Dockerfile | awk '$1 == "ENV" && $2 == "NGINX_VERSION" { print $3 }' | awk -F. '{ print $3 }')" |
| 67 | +
|
55 | 68 | - name: Build and push NGINX mainline perl Debian image |
56 | 69 | uses: docker/build-push-action@v2 |
57 | 70 | with: |
58 | | - platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/mips64le, linux/ppc64le, linux/s390x |
| 71 | + platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x |
59 | 72 | context: "{{ defaultContext }}:mainline/debian-perl" |
60 | 73 | tags: nginxinc/nginx-unprivileged:${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}-perl, nginxinc/nginx-unprivileged:mainline-perl, nginxinc/nginx-unprivileged:1-perl, nginxinc/nginx-unprivileged:${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}-perl, nginxinc/nginx-unprivileged:perl |
61 | | - push: false |
| 74 | + push: true |
0 commit comments