-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.08 KB
/
docker-commit.yaml
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
41
42
43
44
45
46
47
48
49
50
name: Docker Commit
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
push:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
strategy:
matrix:
python:
- 3.7-alpine
- 3.8-alpine
- 3.9-alpine
name: Tag Commit Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Quay
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Build and push
id: docker
uses: docker/build-push-action@v2
with:
push: true
tags: quay.io/renokigames/python-game-terrain:${{ matrix.python }}-${{ github.sha }}
context: .
build-args: |
PYTHON_VERSION=${{ matrix.python }}