-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 913 Bytes
/
cicd.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
41
name: CI/CD
on:
push:
branches:
- main
jobs:
build:
name: Build Docker image and push to repositories
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3'
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: login to hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USR }}
password: ${{ secrets.DOCKER_HUB_PASS }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: tachyonbyte/leaderboard