change #1 #2
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: CESAM Pipeline | |
on: | |
push: | |
branches: | |
- main | |
- setting-pipeline | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
thredds: | |
image: unidata/thredds-docker:5.5-SNAPSHOT | |
ports: | |
- 80:8080 | |
options: --name thredds | |
volumes: | |
- /var/thredds/public:/usr/local/tomcat/content/thredds/public | |
- /var/thredds/web.xml:/usr/local/tomcat/webapps/thredds/WEB-INF/web.xml | |
- /var/thredds/catalog.xml:/usr/local/tomcat/content/thredds/catalog.xml | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Log in to Docker Hub | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
echo "${DOCKER_PASSWORD}" | docker login docker.pkg.github.com -u "${DOCKER_USERNAME}" --password-stdin | |
- name: Build and push backend Docker image | |
run: | | |
docker build -f backend/Dockerfile.dev -t docker.pkg.github.com/DXOGO/backend:latest ./backend | |
docker push docker.pkg.github.com/DXOGO/backend:latest | |
- name: Build and push frontend Docker image | |
run: | | |
docker build -f frontend/Dockerfile.dev -t docker.pkg.github.com/DXOGO/frontend:latest ./frontend | |
docker push docker.pkg.github.com/DXOGO/frontend:latest |