Skip to content

Commit c7ea836

Browse files
workflows: move tasks container to ghcr.io
This speeds things up (due to having the runner closer to the registry) and simplifies credentials management: we'll be able to drop our quay.io environment after this. Move the amd64 and manifest jobs back to GitHub so they can run on GitHub infra, closer to the container registry.
1 parent 1a44b6e commit c7ea836

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Diff for: .github/workflows/build-tasks.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ on:
88
# where different runners pick different tags (eg: for builds near midnight, or
99
# in different time zones). The manifest job picks the final name.
1010
env:
11-
tag: quay.io/cockpit/tasks
12-
tmptag: quay.io/cockpit/tasks-tmp:${{ github.run_id }}.${{ github.run_attempt }}
11+
tag: ghcr.io/${{ github.repository_owner }}/tasks
12+
tmptag: ghcr.io/${{ github.repository_owner }}/tasks-tmp:${{ github.run_id }}.${{ github.run_attempt }}
1313

1414
jobs:
1515
build:
1616
strategy:
1717
matrix:
1818
build:
1919
- label: amd64
20-
runner: buildjet-2vcpu-ubuntu-2204
20+
runner: ubuntu-22.04
2121
- label: arm64
2222
runner: buildjet-2vcpu-ubuntu-2204-arm
2323

2424
runs-on: ${{ matrix.build.runner }}
25-
environment: quay.io
2625
timeout-minutes: 10
2726

2827
steps:
@@ -31,9 +30,9 @@ jobs:
3130
name: Log in to container registry
3231
uses: docker/login-action@v3
3332
with:
34-
registry: quay.io
35-
username: ${{ secrets.QUAY_BOTUSER }}
36-
password: ${{ secrets.QUAY_TOKEN }}
33+
registry: ghcr.io
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
3736
-
3837
name: Checkout
3938
uses: actions/checkout@v4
@@ -49,14 +48,13 @@ jobs:
4948
manifest:
5049
needs: build
5150

52-
runs-on: buildjet-2vcpu-ubuntu-2204
53-
environment: quay.io
51+
runs-on: ubuntu-22.04
5452
timeout-minutes: 5
5553

5654
steps:
5755
-
5856
name: Login in to container registry
59-
run: podman login -u ${{ secrets.QUAY_BOTUSER }} -p ${{ secrets.QUAY_TOKEN }} quay.io
57+
run: podman login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
6058
-
6159
name: Create manifest
6260
run: podman manifest create tasks '${{ env.tmptag }}'-{amd,arm}64

0 commit comments

Comments
 (0)