This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
Release to DO container registry #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: "Release" | |
runs-on: ubuntu-latest | |
environment: production | |
services: | |
mongodb: | |
image: mongo:3.2 | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install doctl | |
uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_TOKEN }} | |
- name: Log in to DigitalOcean Docker Registry | |
run: | | |
doctl registry login | |
- name: Release | |
run: ./sbt "release with-defaults" | |
# - name: Push image to DO registry | |
# run: | | |
# version=$(sbt version | tail -n 1 | awk -F ' ' '{print $2}') | |
# docker push registry.digitalocean.com/sdkman/sdkman-website:$version | |
# docker push registry.digitalocean.com/sdkman/sdkman-website:latest | |