forked from greenbone/ospd-openvas
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.08 KB
/
container.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
name: Container Image Builds
on:
push:
branches: [ main, stable, oldstable ]
tags: ["v*"]
workflow_dispatch:
jobs:
images:
name: Build and upload ospd-openvas container
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Gather container image tags
uses: greenbone/actions/container-image-tags@v1
id: container
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install poetry
uses: greenbone/actions/poetry@v1
- name: Build wheel
run: poetry build -f wheel
- name: Build and push Container image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.container.outputs.image-tags }}
file: .docker/prod.Dockerfile