Skip to content

Commit

Permalink
rename actions and fix site url https://
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Jan 2, 2024
1 parent 53c91d6 commit f2602be
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and push nemanjamiticcom Docker image
name: Build and push Docker

on:
push:
Expand All @@ -14,24 +14,24 @@ on:
env:
IMAGE_NAME: ${{ github.repository }}
# set this
PUBLIC_SITE_HOSTNAME: nemanjamitic.com
PUBLIC_SITE_HOSTNAME: 'https://nemanjamitic.com'

jobs:
build:
name: Build & push docker image
name: Build and push docker image
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Print commit id, message and tag
run: |
git show -s --format='%h %s'
echo "github.ref -> {{ github.ref }}"
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v3
Expand All @@ -41,7 +41,7 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
if: ${{ github.ref_type == 'tag' }}
Expand All @@ -58,4 +58,4 @@ jobs:
file: ./docker/Dockerfile
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
labels: ${{ steps.metadata.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy latest nemanjamiticcom Docker image
name: Deploy Docker


on:
workflow_run:
workflows: ['Build and push nemanjamiticcom Docker image - disabled']
workflows: ['Build and push Docker - disabled']
types:
- completed

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Deploy GitHub Pages

on:
push:
Expand All @@ -18,7 +18,7 @@ permissions:
id-token: write

env:
PUBLIC_SITE_HOSTNAME: nemanjam.github.io
PUBLIC_SITE_HOSTNAME: 'https://nemanjam.github.io'

jobs:
# build with astro action, no monorepo
Expand All @@ -33,7 +33,7 @@ jobs:
# with:
# path: apps/nemanjamiticcom
# node-version: 20.10.0
# package-manager: yarn@latest
# package-manager: yarn@latest

build-monorepo:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,4 +74,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
8 changes: 4 additions & 4 deletions .github/workflows/deploy-nginx.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy nemanjamiticcom Nginx
name: Deploy Nginx

on:
push:
Expand All @@ -12,7 +12,7 @@ on:
workflow_dispatch:

env:
PUBLIC_SITE_HOSTNAME: nemanjamitic.com
PUBLIC_SITE_HOSTNAME: 'https://nemanjamitic.com'

jobs:
deploy:
Expand Down Expand Up @@ -49,8 +49,8 @@ jobs:
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.REMOTE_KEY_ED25519 }}
port: ${{ secrets.REMOTE_PORT }}
source: "apps/nemanjamiticcom/dist/"
target: "/home/ubuntu/traefik-proxy/apps/nginx-with-volume-nmc/website"
source: 'apps/nemanjamiticcom/dist/'
target: '/home/ubuntu/traefik-proxy/apps/nginx-with-volume-nmc/website'

# remove apps/nemanjamiticcom/dist path segments
strip_components: 3
Expand Down
3 changes: 1 addition & 2 deletions packages/prettier-config/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
dist
node_modules
.github
.changeset
*.md
yarn.yaml
.turbo
.vercel
# *.md

0 comments on commit f2602be

Please sign in to comment.