Skip to content

change #1

change #1 #2

Workflow file for this run

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