Skip to content

Fix profile improments. #134

Fix profile improments.

Fix profile improments. #134

Workflow file for this run

# Test if working.
name: Build and push a docker image and a flist.
on:
push:
branches: [main, development]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push server image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/cshr_server:latest
file: "./Dockerfile"
- name: Build and push client image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/cshr_client:latest
file: "./client/Dockerfile"
context: ./client
- name: build and push server flist
run: |
curl -f -X POST -H "Authorization: bearer ${{ secrets.FLIST_TOKEN }}" https://hub.grid.tf/api/flist/me/docker -F 'image=${{ secrets.DOCKER_USERNAME }}/cshr_server:latest'
- name: build and push client flist
run: |
curl -f -X POST -H "Authorization: bearer ${{ secrets.FLIST_TOKEN }}" https://hub.grid.tf/api/flist/me/docker -F 'image=${{ secrets.DOCKER_USERNAME }}/cshr_client:latest'