Skip to content

Commit

Permalink
fix: clean up image name
Browse files Browse the repository at this point in the history
  • Loading branch information
mchristopher committed Dec 4, 2024
1 parent 0f7f56e commit 0b710c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_NAME: ghcr.io/fuellabs/dr-cla

jobs:
build:
Expand All @@ -29,9 +29,17 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Build and push Docker images
uses: iloveitaly/github-action-nixpacks@main
with:
push: true
cache: true
platforms: "linux/amd64,linux/arm64"
tags: |
${{ env.IMAGE_NAME }}:${{ env.DATE_STAMP }}
${{ env.IMAGE_NAME }}:latest

0 comments on commit 0b710c8

Please sign in to comment.