1

Add action.yml

This commit is contained in:
Woltvint Němeček 2023-11-25 23:26:45 +00:00
parent 0245e913ed
commit e838e833a8

11
action.yml Normal file
View File

@ -0,0 +1,11 @@
name: 'BuildAndDeployDocker'
description: 'Builds a docker container and deploys it to the cluster'
runs:
using: "composite"
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: docker login "$PACKAGE_REPO_URL" -u "$PACKAGE_REPO_USER" -p "$PACKAGE_REPO_PASS"
- run: docker build . -t "$PACKAGE_REPO_URL/$(basename ${{ gitea.repository }}):latest"
- run: docker push "$PACKAGE_REPO_URL/$(basename ${{ gitea.repository }}):latest"
- run: wget -q $CLUSTER_ROLLOUT_URL$(basename ${{ gitea.repository }})