# 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: test TAG: latest name: docker-build runs-on: ubuntu-latest steps: - name: Check out Code uses: actions/checkout@v3 - name: Login to Registry uses: docker/login-action@v2 with: registry: registry.digitalocean.com username: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_TOKEN }} password: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_TOKEN }} - name: build run: docker build . -t ${REGISTRY}/${IMAGE}:${TAG} - name: push run: docker push ${REGISTRY}/${IMAGE}:${TAG}