Skip to content

Fix week start date calculation #7

Fix week start date calculation

Fix week start date calculation #7

Workflow file for this run

name: Build and Push image
on:
push:
branches:
- master
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Log in to the Container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@master
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/gumo:latest
- name: Deploy new image
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
script: |
docker compose --file ${{ secrets.DOCKER_COMPOSE_FILE }} down --rmi all gumo
docker compose --file ${{ secrets.DOCKER_COMPOSE_FILE }} up -d --force-recreate gumo