-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1.09 KB
/
build-push-docker_pr.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
name: Build geokube Docker image and push to geokube container registry
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Docker image tag name
run: echo "TAG=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_ENV
- uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install WHEEL tool
run: pip install wheel
- name: Build WHEEL file
run: python setup.py bdist_wheel
- name: Login to Scaleway Container Registry
uses: docker/login-action@v2
with:
username: nologin
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ vars.GEOKUBE_REGISTRY }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ vars.GEOKUBE_REGISTR }}/geokube:${{ env.TAG }}
${{ secrets.GEOKUBE_REGISTR }}/geokube:latest