ci: fix wrong directory name
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v5
|
||||
- name: Build project
|
||||
run: mvn clean package -DskipTests
|
||||
|
||||
build-docker-nightly:
|
||||
if: gitea.ref == 'refs/head/main'
|
||||
needs: build
|
||||
runs-on: debian-latest-amd
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v5
|
||||
- name: Authenticate at container registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: viziona.dev
|
||||
username: ${{ vars.DOCKER_PUSH_USER }}
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
- name: Build docker image
|
||||
run: docker build -t viziona.dev/taiqane/discord-webhook-proxy:nightly .
|
||||
- name: Push to docker registry
|
||||
run: docker push --all-tags viziona.dev/taiqane/discord-webhook-proxy
|
||||
|
||||
build-docker-release:
|
||||
if: startsWith(gitea.ref, 'refs/tags/v')
|
||||
needs: build
|
||||
runs-on: debian-latest-amd
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v5
|
||||
- name: Authenticate at container registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: viziona.dev
|
||||
username: ${{ vars.DOCKER_PUSH_USER }}
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
- name: Build docker image
|
||||
run: docker build -t viziona.dev/taiqane/discord-webhook-proxy:${{ gitea.ref_name }} .
|
||||
- name: Push to docker registry
|
||||
run: docker push --all-tags viziona.dev/taiqane/discord-webhook-proxy
|
||||
Reference in New Issue
Block a user