Fix profile improments. #134
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
# 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' |