-
-
Notifications
You must be signed in to change notification settings - Fork 297
40 lines (31 loc) · 1.11 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: docker
on:
push:
tags:
- v*
permissions: read-all
jobs:
build_and_push:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build & push docker images for ${{ github.event.ref }}
run: |
VERSION=$(python -m tcms)
make docker-image
docker tag kiwitcms/kiwi:latest quay.io/kiwitcms/upstream:$VERSION-$(uname -m)
echo "+++++ Docker images +++++"
docker images
echo "${{ secrets.DOCKER_PUSH_TOKEN }}" | docker login -u="${{ secrets.DOCKER_PUSH_USERNAME }}" --password-stdin
docker push kiwitcms/kiwi:latest
docker logout
echo "${{ secrets.QUAY_PUSH_TOKEN }}" | docker login -u="${{ secrets.QUAY_PUSH_USERNAME }}" --password-stdin quay.io
docker push quay.io/kiwitcms/upstream:$VERSION-$(uname -m)
docker logout quay.io