Skip to content

Commit 9dcb111

Browse files
committed
disable circle and migrate docker image builders to GHA
1 parent 5223dc6 commit 9dcb111

File tree

5 files changed

+112
-51
lines changed

5 files changed

+112
-51
lines changed

.circleci/config.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -151,41 +151,41 @@ workflows:
151151
version: 2
152152
build:
153153
jobs:
154-
- backend-lint:
155-
filters:
156-
tags:
157-
only: /^m[0-9]+(\.[0-9]+)?$/
158-
- backend-unit-tests:
159-
filters:
160-
tags:
161-
only: /^m[0-9]+(\.[0-9]+)?$/
162-
requires:
163-
- backend-lint
164-
- frontend-lint:
165-
filters:
166-
tags:
167-
only: /^m[0-9]+(\.[0-9]+)?$/
168-
- frontend-unit-tests:
169-
filters:
170-
tags:
171-
only: /^m[0-9]+(\.[0-9]+)?$/
172-
requires:
173-
- backend-lint
174-
- frontend-lint
175-
- build-docker-image:
176-
requires:
177-
- backend-unit-tests
178-
- frontend-unit-tests
179-
filters:
180-
branches:
181-
only:
182-
- master
183-
- build-docker-image-tag:
184-
requires:
185-
- backend-unit-tests
186-
- frontend-unit-tests
187-
filters:
188-
branches:
189-
ignore: /.*/
190-
tags:
191-
only: /^m[0-9]+(\.[0-9]+)?$/
154+
# - backend-lint:
155+
# filters:
156+
# tags:
157+
# only: /^m[0-9]+(\.[0-9]+)?$/
158+
# - backend-unit-tests:
159+
# filters:
160+
# tags:
161+
# only: /^m[0-9]+(\.[0-9]+)?$/
162+
# requires:
163+
# - backend-lint
164+
# - frontend-lint:
165+
# filters:
166+
# tags:
167+
# only: /^m[0-9]+(\.[0-9]+)?$/
168+
# - frontend-unit-tests:
169+
# filters:
170+
# tags:
171+
# only: /^m[0-9]+(\.[0-9]+)?$/
172+
# requires:
173+
# - backend-lint
174+
# - frontend-lint
175+
# - build-docker-image:
176+
# requires:
177+
# - backend-unit-tests
178+
# - frontend-unit-tests
179+
# filters:
180+
# branches:
181+
# only:
182+
# - master
183+
# - build-docker-image-tag:
184+
# requires:
185+
# - backend-unit-tests
186+
# - frontend-unit-tests
187+
# filters:
188+
# branches:
189+
# ignore: /.*/
190+
# tags:
191+
# only: /^m[0-9]+(\.[0-9]+)?$/
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build docker image tag
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- '**'
7+
tags:
8+
# GHA doesn't support regex here so less precise tag matching will have to do
9+
- 'm[0-9]+*'
10+
11+
jobs:
12+
build-docker-image-tag:
13+
docker:
14+
- image: cimg/node:18.20
15+
steps:
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ env.NODE_VERSION }}
19+
cache: 'yarn'
20+
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.pull_request.head.sha }}
23+
- run: echo "export MOZILLA_VERSION=$CIRCLE_TAG" >> $BASH_ENV
24+
- run: |
25+
npm install --global --force yarn@$1.22.22
26+
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
27+
- run: .ci/update_version
28+
# Bundle extensions:
29+
# - run: npm run bundle
30+
- run: .ci/docker_build
31+
# Create alias from tag to "latest":
32+
- run: docker tag $DOCKERHUB_REPO:$CIRCLE_TAG $DOCKERHUB_REPO:latest
33+
- run: docker push $DOCKERHUB_REPO:latest

.github/workflows/build-image.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-docker-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: ${{ env.NODE_VERSION }}
15+
cache: 'yarn'
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.head.sha }}
19+
- run: echo "export MOZILLA_VERSION=master" >> $BASH_ENV
20+
- run: |
21+
npm install --global --force yarn@$1.22.22
22+
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
23+
- run: .ci/update_version
24+
# Bundle extensions:
25+
# - run: npm run bundle
26+
- run: .ci/docker_build

.github/workflows/periodic-snapshot.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: Periodic Snapshot
22

33
on:
4-
schedule:
5-
- cron: '10 0 1 * *' # 10 minutes after midnight on the first day of every month
6-
workflow_dispatch:
7-
inputs:
8-
bump:
9-
description: 'Bump the last digit of the version'
10-
required: false
11-
type: boolean
12-
version:
13-
description: 'Specific version to set'
14-
required: false
15-
default: ''
4+
# DISABLED
5+
# schedule:
6+
# - cron: '10 0 1 * *' # 10 minutes after midnight on the first day of every month
7+
# workflow_dispatch:
8+
# inputs:
9+
# bump:
10+
# description: 'Bump the last digit of the version'
11+
# required: false
12+
# type: boolean
13+
# version:
14+
# description: 'Specific version to set'
15+
# required: false
16+
# default: ''
1617

1718
env:
1819
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/restyled.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Restyled
22

33
on:
4-
pull_request:
4+
# DISABLED due to org policies
5+
# pull_request:
56

67
concurrency:
78
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)