Skip to content

Commit

Permalink
Merge pull request #420 from piny940/fix-docker-tag
Browse files Browse the repository at this point in the history
タグにtimestampをつける
  • Loading branch information
piny940 authored May 30, 2024
2 parents 2ff48b6 + 69bd60f commit 1058e03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/admin-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
admin:
runs-on: ubuntu-latest
steps:
- name: Get current datetime
run: echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Check out
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
Expand All @@ -31,5 +33,5 @@ jobs:
"BACKEND_HOST=http://stg-portfolio-backend.default.svc.cluster.local:8080"
file: ./admin/Dockerfile
tags: |
ghcr.io/piny940/portfolio-admin:main-${{ github.sha }}-${{ github.run_number }}
ghcr.io/piny940/portfolio-admin:main-${{ github.sha }}-${{ env.TIMESTAMP }}
4 changes: 3 additions & 1 deletion .github/workflows/backend-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Get current datetime
run: echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Check out
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
Expand All @@ -29,4 +31,4 @@ jobs:
context: ./backend
file: ./backend/Dockerfile
tags: |
ghcr.io/piny940/portfolio-backend:main-${{ github.sha }}-${{ github.run_number }}
ghcr.io/piny940/portfolio-backend:main-${{ github.sha }}-${{ env.TIMESTAMP }}
4 changes: 3 additions & 1 deletion .github/workflows/updater-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
updater:
runs-on: ubuntu-latest
steps:
- name: Get current datetime
run: echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Check out
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
Expand All @@ -29,4 +31,4 @@ jobs:
context: ./updater
file: ./updater/Dockerfile
tags: |
ghcr.io/piny940/portfolio-updater:main-${{ github.sha }}-${{ github.run_number }}
ghcr.io/piny940/portfolio-updater:main-${{ github.sha }}-${{ env.TIMESTAMP }}

0 comments on commit 1058e03

Please sign in to comment.