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" --build-arg USER=$PACKAGE_REPO_USER --build-arg PASS=$PACKAGE_REPO_PASS --build-arg URL=$PACKAGE_REPO_URL --build-arg NUGET=$PACKAGE_REPO_URL_NUGET - run: docker push "$PACKAGE_REPO_URL/$(basename ${{ gitea.repository }}):latest" - run: wget -q $CLUSTER_ROLLOUT_URL$(basename ${{ gitea.repository }})