-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.19 KB
/
build-and-push.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
# https://github.com/sclorg/build-and-push-action
name: Build and push to quay.io registry
on:
push:
branches:
- main
jobs:
build-and-push-osh-hub:
runs-on: ubuntu-20.04
steps:
- name: Build and push to quay.io registry
uses: sclorg/build-and-push-action@v4
with:
registry: "quay.io"
registry_namespace: "openscanhub-fedora-infra"
registry_username: ${{ secrets.REGISTRY_LOGIN }}
registry_token: ${{ secrets.REGISTRY_TOKEN }}
dockerfile: "containers/hub.Containerfile"
docker_context: "containers"
image_name: "fedora-osh-hub"
tag: "staging"
build-and-push-resalloc-server:
runs-on: ubuntu-20.04
steps:
- name: Build and push to quay.io registry
uses: sclorg/build-and-push-action@v4
with:
registry: "quay.io"
registry_namespace: "openscanhub-fedora-infra"
registry_username: ${{ secrets.REGISTRY_LOGIN }}
registry_token: ${{ secrets.REGISTRY_TOKEN }}
dockerfile: "containers/resalloc-server.Containerfile"
docker_context: "containers"
image_name: "resalloc-server"
tag: "staging"