deploy #22
Workflow file for this run
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: deploy | |
on: | |
release: | |
types: [released] | |
jobs: | |
deploy_docker_jvm: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Docker | |
run: | | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
- name: Login to Docker | |
run: docker login ghcr.io --username=alexandru --password="$GH_TOKEN" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build JVM Docker image | |
run: | | |
make build-jvm | |
env: | |
GIT_TAG: ${{ github.ref }} | |
- name: Push JVM Docker images | |
run: | | |
make push-jvm | |
env: | |
GIT_TAG: ${{ github.ref }} | |
deploy_docker_native: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Docker | |
run: | | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
- name: Login to Docker | |
run: docker login ghcr.io --username=alexandru --password="$GH_TOKEN" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Native Docker image | |
run: | | |
make build-native | |
env: | |
GIT_TAG: ${{ github.ref }} | |
- name: Push Native Docker images | |
run: | | |
make push-native | |
env: | |
GIT_TAG: ${{ github.ref }} | |
all: | |
name: Pushed All | |
if: always() | |
needs: [ deploy_docker_native, deploy_docker_jvm ] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Validate required tests | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |