2021-03-29 14:22:00 +07:00
|
|
|
name: Docker CI Private
|
2021-03-07 12:52:22 +07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-13 12:12:28 +07:00
|
|
|
- main
|
2021-03-07 12:52:22 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build and Publish Docker Image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Sign-in to Private Registry "${REGISTRY}"
|
|
|
|
run: docker login $REGISTRY -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Building Docker Image
|
2023-12-13 12:12:28 +07:00
|
|
|
run: /bin/bash scripts/build.sh scripts/build-arm.sh
|