Skip to content

Commit caa2c36

Browse files
committed
chore: new automation EOLs
1 parent 257677b commit caa2c36

2 files changed

Lines changed: 122 additions & 122 deletions

File tree

.github/workflows/docker.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
name: DockerX Workflow
2-
on:
3-
push:
4-
tags:
5-
- "*"
6-
branches-ignore:
7-
- none
8-
workflow_dispatch:
9-
jobs:
10-
fast:
11-
name: Fast (${{ matrix.config.dockerfile }})
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
config:
16-
- { dockerfile: "Dockerfile", context: "pushi", tag_suffix: "-amd64" }
17-
uses: ./.github/workflows/dockerx-build.yml
18-
with:
19-
dockerfile: ${{ matrix.config.dockerfile }}
20-
context: ${{ matrix.config.context }}
21-
platforms: "linux/amd64"
22-
tag_suffix: ${{ matrix.config.tag_suffix }}
23-
secrets:
24-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
25-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
26-
full:
27-
name: Full (${{ matrix.config.dockerfile }})
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
config:
32-
- { dockerfile: "Dockerfile", context: "pushi", platforms: "linux/amd64,linux/arm64/v8" }
33-
uses: ./.github/workflows/dockerx-build.yml
34-
with:
35-
dockerfile: ${{ matrix.config.dockerfile }}
36-
context: ${{ matrix.config.context }}
37-
platforms: ${{ matrix.config.platforms }}
38-
tag_suffix: ""
39-
secrets:
40-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
41-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
42-
trigger-deploy-pushi:
43-
name: Trigger pushi deployment
44-
needs: fast
45-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: hivesolutions/deploy-action@v1
49-
with:
50-
repository: hivesolutions/infra-bemisc
51-
service: pushi
52-
group: apps
53-
tag: ${{ github.ref_name }}-amd64
54-
token: ${{ secrets.INFRA_DEPLOY_PAT }}
1+
name: DockerX Workflow
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
branches-ignore:
7+
- none
8+
workflow_dispatch:
9+
jobs:
10+
fast:
11+
name: Fast (${{ matrix.config.dockerfile }})
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
config:
16+
- { dockerfile: "Dockerfile", context: "pushi", tag_suffix: "-amd64" }
17+
uses: ./.github/workflows/dockerx-build.yml
18+
with:
19+
dockerfile: ${{ matrix.config.dockerfile }}
20+
context: ${{ matrix.config.context }}
21+
platforms: "linux/amd64"
22+
tag_suffix: ${{ matrix.config.tag_suffix }}
23+
secrets:
24+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
25+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
26+
full:
27+
name: Full (${{ matrix.config.dockerfile }})
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
config:
32+
- { dockerfile: "Dockerfile", context: "pushi", platforms: "linux/amd64,linux/arm64/v8" }
33+
uses: ./.github/workflows/dockerx-build.yml
34+
with:
35+
dockerfile: ${{ matrix.config.dockerfile }}
36+
context: ${{ matrix.config.context }}
37+
platforms: ${{ matrix.config.platforms }}
38+
tag_suffix: ""
39+
secrets:
40+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
41+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
42+
trigger-deploy-pushi:
43+
name: Trigger pushi deployment
44+
needs: fast
45+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: hivesolutions/deploy-action@v1
49+
with:
50+
repository: hivesolutions/infra-bemisc
51+
service: pushi
52+
group: apps
53+
tag: ${{ github.ref_name }}-amd64
54+
token: ${{ secrets.INFRA_DEPLOY_PAT }}
Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
name: DockerX Build (reusable)
2-
on:
3-
workflow_call:
4-
inputs:
5-
dockerfile:
6-
description: "Path to the Dockerfile to build"
7-
required: true
8-
type: string
9-
context:
10-
description: "Logical context identifier (eg: pushi)"
11-
required: true
12-
type: string
13-
platforms:
14-
description: "Comma-separated list of target platforms"
15-
required: true
16-
type: string
17-
tag_suffix:
18-
description: "Suffix appended to the computed base tag (eg: \"-amd64\")"
19-
required: false
20-
type: string
21-
default: ""
22-
secrets:
23-
DOCKERHUB_USERNAME:
24-
required: true
25-
DOCKERHUB_TOKEN:
26-
required: true
27-
jobs:
28-
build:
29-
name: Build
30-
timeout-minutes: 180
31-
runs-on: [self-hosted, ubuntu, latest]
32-
steps:
33-
- name: Checkout code
34-
uses: actions/checkout@v7
35-
with:
36-
submodules: true
37-
- name: Set up QEMU
38-
uses: docker/setup-qemu-action@v4
39-
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@v4
41-
- name: Login to DockerHub
42-
uses: docker/login-action@v4
43-
with:
44-
username: ${{ secrets.DOCKERHUB_USERNAME }}
45-
password: ${{ secrets.DOCKERHUB_TOKEN }}
46-
- name: Set build variables
47-
id: set_vars
48-
run: |
49-
echo "build_date=$(date +%s)" >> $GITHUB_OUTPUT
50-
if [[ "${{ github.ref_name }}" == "master" ]]; then
51-
base_tag="latest"
52-
else
53-
ref_name=${{ github.ref_name }}
54-
BRANCH_NAME=${ref_name//\//_}
55-
base_tag="$BRANCH_NAME"
56-
fi
57-
echo "tag=${base_tag}${{ inputs.tag_suffix }}" >> $GITHUB_OUTPUT
58-
- name: Build and push
59-
uses: docker/build-push-action@v7
60-
with:
61-
context: .
62-
file: ${{ inputs.dockerfile }}
63-
platforms: ${{ inputs.platforms }}
64-
push: true
65-
tags: hivesolutions/pushi:${{ steps.set_vars.outputs.tag }}
66-
build-args: |
67-
GIT_COMMIT=${{ github.sha }}
68-
BUILD_DATE=${{ steps.set_vars.outputs.build_date }}
1+
name: DockerX Build (reusable)
2+
on:
3+
workflow_call:
4+
inputs:
5+
dockerfile:
6+
description: "Path to the Dockerfile to build"
7+
required: true
8+
type: string
9+
context:
10+
description: "Logical context identifier (eg: pushi)"
11+
required: true
12+
type: string
13+
platforms:
14+
description: "Comma-separated list of target platforms"
15+
required: true
16+
type: string
17+
tag_suffix:
18+
description: "Suffix appended to the computed base tag (eg: \"-amd64\")"
19+
required: false
20+
type: string
21+
default: ""
22+
secrets:
23+
DOCKERHUB_USERNAME:
24+
required: true
25+
DOCKERHUB_TOKEN:
26+
required: true
27+
jobs:
28+
build:
29+
name: Build
30+
timeout-minutes: 180
31+
runs-on: [self-hosted, ubuntu, latest]
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v7
35+
with:
36+
submodules: true
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@v4
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v4
41+
- name: Login to DockerHub
42+
uses: docker/login-action@v4
43+
with:
44+
username: ${{ secrets.DOCKERHUB_USERNAME }}
45+
password: ${{ secrets.DOCKERHUB_TOKEN }}
46+
- name: Set build variables
47+
id: set_vars
48+
run: |
49+
echo "build_date=$(date +%s)" >> $GITHUB_OUTPUT
50+
if [[ "${{ github.ref_name }}" == "master" ]]; then
51+
base_tag="latest"
52+
else
53+
ref_name=${{ github.ref_name }}
54+
BRANCH_NAME=${ref_name//\//_}
55+
base_tag="$BRANCH_NAME"
56+
fi
57+
echo "tag=${base_tag}${{ inputs.tag_suffix }}" >> $GITHUB_OUTPUT
58+
- name: Build and push
59+
uses: docker/build-push-action@v7
60+
with:
61+
context: .
62+
file: ${{ inputs.dockerfile }}
63+
platforms: ${{ inputs.platforms }}
64+
push: true
65+
tags: hivesolutions/pushi:${{ steps.set_vars.outputs.tag }}
66+
build-args: |
67+
GIT_COMMIT=${{ github.sha }}
68+
BUILD_DATE=${{ steps.set_vars.outputs.build_date }}

0 commit comments

Comments
 (0)