Skip to content

Commit

Permalink
Use GitHub SHA to version containers
Browse files Browse the repository at this point in the history
  • Loading branch information
PolpOnline committed Nov 21, 2024
1 parent 1de9f3c commit ce3551c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ jobs:
id: image_name
run: echo "IMAGE_NAME=ghcr.io/$(echo "${{ github.repository }}-frontend" | tr '[:upper:]' '[:lower:]')" > "$GITHUB_ENV"

# create a unique tag for each build for debugging
- name: Set Docker tag
id: date
run: echo "DATE_STAMP=$(date +%s)" > "$GITHUB_ENV"

- name: Build and push Docker images
uses: PolpOnline/github-action-nixpacks@main
with:
Expand All @@ -71,5 +66,5 @@ jobs:
cache: true
cache_tag: ${{ env.IMAGE_NAME }}:latest
tags: |
${{ env.IMAGE_NAME }}:id-${{ env.DATE_STAMP }}
${{ env.IMAGE_NAME }}:${{ github.sha }}
${{ env.IMAGE_NAME }}:latest

0 comments on commit ce3551c

Please sign in to comment.