Skip to content

update

update #6

Workflow file for this run

name: release
on:
push:
branches:
- master
jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: Get package info
id: package
uses: codex-team/[email protected]
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{steps.package.outputs.name}}:latest
build-args: |
GATEWAY=${{secrets.VITE_HTTP_GATEWAY}}
- name: webhook
run: |
curl -X GET \
-H "Content-Type: application/json" \
-H "Container: ${{steps.package.outputs.name}}" \
-H "Authorization: ${{secrets.PANEL_TOKEN}}" \
${{secrets.PANEL_WEBHOOK}}