Skip to content

Commit 6667fbc

Browse files
committed
.github/workflows: add container.yaml
Automatically update teuthology-api:main image to QUAY_URI (set from github repo settings). Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
1 parent f0a9d59 commit 6667fbc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/container.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Automatically update teuthology-api:main image on quay.io/ceph-infra/teuthology-api
2+
name: Push Container to Quay
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
- name: Login to Quay.io
20+
uses: docker/login-action@v3
21+
with:
22+
registry: quay.io
23+
username: ${{ secrets.QUAY_USERNAME }}
24+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
25+
- name: Build and push
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: .
29+
file: Dockerfile
30+
platforms: linux/amd64,linux/arm64
31+
push: true
32+
# QUAY_URI is set using https://github.com/ceph/teuthology-api/settings/variables/actions
33+
tags: ${{ vars.QUAY_URI }}:${{ github.ref_name }}
34+
outputs: type=image,name=target

0 commit comments

Comments
 (0)