Skip to content

Commit 2a955eb

Browse files
committed
.github: Add container.yaml
Automatically update teuthology-api:main image on quay. This is a TEST run with container-push-ci branch. Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
1 parent 1cd680b commit 2a955eb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/container.yaml

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

0 commit comments

Comments
 (0)