First try with CI
Some checks failed
Build and push docker image / publish (push) Has been cancelled
Some checks failed
Build and push docker image / publish (push) Has been cancelled
This commit is contained in:
25
.gitea/workflows/image.yaml
Normal file
25
.gitea/workflows/image.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Build and push docker image
|
||||
run-name: ${{ gitea.actor }} is building and pushing the docker image 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry.brunner.ninja]
|
||||
http = true
|
||||
insecure = false
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: "registry.brunner.ninja/feedc0de/less_shitty_proxyjs:${{gitea.sha}},registry.brunner.ninja/feedc0de/less_shitty_proxyjs:latest"
|
Reference in New Issue
Block a user