This repository was archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (52 loc) · 1.72 KB
/
container-images.yml
File metadata and controls
54 lines (52 loc) · 1.72 KB
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
51
52
53
54
name: Container images generator
on:
push:
branches-ignore:
- "dependabot/**"
jobs:
container-images:
if: ${{ github.repository_owner == 'project-openubl' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2.4.0
with:
node-version: 12.x
- name: Build
run: |
yarn install
yarn build
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Push to GitHub Packages
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: docker.pkg.github.com
name: project-openubl/ublhub-ui/ublhub-ui
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
snapshot: false
tags: ${{ steps.extract_branch.outputs.branch }}
- name: Push to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: projectopenubl/ublhub-ui
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile
snapshot: false
tags: ${{ steps.extract_branch.outputs.branch }}
- name: Push to Quay.io
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: quay.io
name: projectopenubl/ublhub-ui
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_PASSWORD }}
dockerfile: Dockerfile
snapshot: false
tags: ${{ steps.extract_branch.outputs.branch }}