-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temprorarily migrate back to gh actions due to gh pulls throttling
- Loading branch information
1 parent
0d1faed
commit 0072af5
Showing
2 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Gitea Actions Demo | ||
run-name: Build Neovim image yay | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '30 6 */3 * *' | ||
|
||
jobs: | ||
Explore-Gitea-Actions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: docker build . --file Dockerfile --tag neovim:latest | ||
- name: upload image | ||
#env: | ||
#PACKAGES_USERNAME: ${{ secrets.PACKAGES_USERNAME }} | ||
#PACKAGES_PASSWD: ${{ secrets.PACKAGES_PASSWD }} | ||
run: docker login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud | ||
#- run: docker push gitea.maciej.cloud/packages/neovim | ||
- name: Push image | ||
run: | | ||
IMAGE_NAME="neovim" | ||
IMAGE_ID="gitea.maciej.cloud/packages/$IMAGE_NAME" | ||
TAG=$(date +"%Y-%m-%d") | ||
docker tag $IMAGE_NAME:latest $IMAGE_ID:latest | ||
docker push $IMAGE_ID:latest | ||
docker tag $IMAGE_ID:latest $IMAGE_ID:$TAG |