Update action.yml
This commit is contained in:
parent
d1b1644169
commit
7704f4094c
1 changed files with 36 additions and 1 deletions
37
action.yml
37
action.yml
|
|
@ -5,4 +5,39 @@ description: Some test
|
|||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- run: echo 'TEST JOB'
|
||||
- name: Checkout app
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: app
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
working-directory: app
|
||||
- name: Checkout scripts
|
||||
shell: bash -l {0}
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: develop/scripts
|
||||
ref: master
|
||||
path: scripts
|
||||
token: ${{ secrets.DEPLOY_KEY }}
|
||||
- run: chmod +rwx scripts/build/build.sh
|
||||
- name: Build app
|
||||
run: scripts/build/build.sh
|
||||
env:
|
||||
BRANCH: dev
|
||||
BUILD_DIR: app
|
||||
BUILD_TAGS: grpc
|
||||
GITHOST: ${{ vars.GITHOST }}
|
||||
GITHOST_LOGIN: ${{ vars.GITHOST_LOGIN }}
|
||||
GITHOST_PASSWORD: ${{ secrets.GITHOST_PASSWORD }}
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- run: chmod +rwx scripts/build/build-docker.sh
|
||||
- name: Build & Push docker
|
||||
run: scripts/build/build-docker.sh
|
||||
env:
|
||||
REGISTRY: ${{ vars.REGISTRY }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue