diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index acc41e2..ba7b392 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -20,10 +20,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - - name: Get timestamp - id: timestamp - run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV - name: Log in to the Container registry uses: docker/login-action@v3 @@ -39,7 +35,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=sha,prefix= - type=raw,enable=${{ !startsWith(github.ref, 'refs/tags/') }},value=dev-${{ env.TIMESTAMP }} + type=raw,enable=${{ !startsWith(github.ref, 'refs/tags/') }},value=develop type=semver,pattern={{raw}} - name: Build and push Docker image @@ -48,4 +44,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file