parent
5ddf33a429
commit
551b7e3ab9
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/publish.yaml
Normal file
21
.forgejo/workflows/publish.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Get Git commit timestamps
|
||||
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
tags: user/app:latest
|
||||
env:
|
||||
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue