mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 18:14:16 +02:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
# ESLint is a tool for identifying and reporting on patterns
|
|
# found in ECMAScript/JavaScript code.
|
|
# More details at https://github.com/eslint/eslint
|
|
# and https://eslint.org
|
|
|
|
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "github-deploy-action" ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
env:
|
|
REPO: git@github.com:veganhacktivists/arabot.git
|
|
REGISTRY: registry.digitalocean.com/vh-registry
|
|
IMAGE: arabot
|
|
TAG: latest
|
|
name: docker-build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_USER }}
|
|
password: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_TOKEN }}
|
|
- name: build
|
|
run: docker build . -t ${REGISTRY}/${IMAGE}:${TAG}
|
|
- name: push
|
|
run: docker push ${REGISTRY}/${IMAGE}:${TAG} |