Update .forgejo/workflows/package-check.yml
This commit is contained in:
parent
bf16a83eed
commit
c6b737db77
1 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
env:
|
||||
PACKAGE: curl
|
||||
DOCKER_REGISTRY: git.shork.ch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -56,10 +57,10 @@ jobs:
|
|||
- name: Build and push Docker image
|
||||
if: env.UPDATE == 'true'
|
||||
run: |
|
||||
docker build -t git.shork.ch/melody/docker-$PACKAGE:latest -t git.shork.ch/melody/docker-$PACKAGE:$LATEST_VERSION .
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.shork.ch -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
docker push git.shork.ch/melody/docker-$PACKAGE:latest
|
||||
docker push git.shork.ch/melody/docker-$PACKAGE:$LATEST_VERSION
|
||||
docker build -t $DOCKER_REGISTRY/melody/docker-$PACKAGE:latest -t $DOCKER_REGISTRY/melody/docker-$PACKAGE:$LATEST_VERSION .
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login $DOCKER_REGISTRY -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
docker push $DOCKER_REGISTRY/melody/docker-$PACKAGE:latest
|
||||
docker push $DOCKER_REGISTRY/melody/docker-$PACKAGE:$LATEST_VERSION
|
||||
echo "$LATEST_VERSION" > .last_version
|
||||
echo $(( $(date +%s) / 86400 )) > .last_rebuild
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue