{"id":374534,"date":"2024-05-21T06:02:43","date_gmt":"2024-05-21T06:02:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=374534"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=374534","title":{"rendered":"<span>\u0414\u0435\u043f\u043b\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e github actions \u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0413\u0430\u0439\u0434 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u0447\u0435\u0440\u0435\u0437 ssh \u0438 docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0432 github. \u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Ubuntu 23.04.<\/p>\n<hr\/>\n<h2>\u041f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f docker-compose.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/h2>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u043c \u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 github actions:<\/p>\n<pre><code class=\"bash\">sudo adduser smith<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044e\u0437\u0435\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c docker \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f<\/p>\n<pre><code class=\"bash\">sudo usermod -aG docker smith<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0437 github, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c ssh \u043a\u043b\u044e\u0447 \u0438 \u0435\u0433\u043e \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438:<\/p>\n<pre><code class=\"bash\">ssh-keygen cp .ssh\/id_rsa.pub .ssh\/authorized_keys<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 github<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c PAT (\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430) \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 &#8212; <a href=\"https:\/\/github.com\/settings\/tokens\" rel=\"noopener noreferrer nofollow\">Personal Access Tokens (Classic) (github.com)<\/a>  . \u0412\u0430\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c. \u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u043e \u0443 \u043d\u0435\u0451 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0432 \u0440\u0435\u043f\u0443 (settings -> Secrets -> Actions):<\/p>\n<ul>\n<li>\n<p>PAT  &#8212; \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>SSH_HOST  &#8212; \u0445\u043e\u0441\u0442 \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>SSH_PRIVATE_KEY  &#8212; \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u044e\u0437\u0435\u0440\u0430 smith<\/p>\n<\/li>\n<li>\n<p>SSH_USER  &#8212; \u0438\u043c\u044f \u044e\u0437\u0435\u0440\u0430, smith<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u0440\u0435\u043f\u0435 \u0444\u0430\u0439\u043b <strong>docker-compose.yml<\/strong> \u0441 \u043d\u0430\u0448\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c:<\/p>\n<pre><code class=\"yaml\">services:   example_app:     container_name: example_app     image: ghcr.io\/your_nick\/example_app:latest     volumes:       - ~\/data:\/app\/data<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c github workflow, \u0444\u0430\u0439\u043b <strong>.github\/workflow\/deploy.yml<\/strong>:<\/p>\n<pre><code class=\"yaml\">name: deploy  on:   pull_request:     types:       - closed     branches: [ \"main\" ]  jobs:      build:         name: Build         runs-on: ubuntu-latest          steps:         - uses: actions\/checkout@v3         - name: Login           run: |             echo ${{ secrets.PAT }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin         - name: Build and Publish           run: |             docker build . --tag ${{ env.DOCKER_TAG }}             docker push ${{ env.DOCKER_TAG }}      deploy:         name: Deploy         runs-on: ubuntu-latest          steps:         - uses: actions\/checkout@v4         - name: install ssh keys           # check this thread to understand why its needed:           # &lt;https:\/\/stackoverflow.com\/a\/70447517>           run: |             install -m 600 -D \/dev\/null ~\/.ssh\/id_rsa             echo \"${{ secrets.SSH_PRIVATE_KEY }}\" > ~\/.ssh\/id_rsa             ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~\/.ssh\/known_hosts         - name: create docker compose config           run: |             cat docker-compose.yml | envsubst > docker-compose-secret.yml         - name: copy docker compose config           run: scp docker-compose-secret.yml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:docker-compose.yml         - name: connect and pull           run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \"docker-compose pull &amp;&amp; docker-compose up -d &amp;&amp; exit\"         - name: cleanup config           if: always()           run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \"rm docker-compose.yml\"         - name: cleanup keys           if: always()           run: rm -rf ~\/.ssh docker-compose-secret.yml <\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u0434\u0435\u043f\u043b\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438 \u043c\u0451\u0440\u0436\u0435 \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u0430.<\/p>\n<p>Docker-compose \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0438\u0437 ghcr.io \u0431\u0435\u0437 \u043a\u0440\u0435\u0434\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u043f\u0430\u043a\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f github \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 packages. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442 \u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Package settings \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043e\u043f\u0446\u0438\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c, \u0442\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e PAT \u0432\u0435\u0437\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043a\u043e\u043d\u0444\u0438\u0433 workflow.<\/p>\n<h2>P.S.:<\/h2>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u043a\u0430\u043a \u0432\u044b \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e github \u0441\u0432\u043e\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0443\u0434\u043e\u0431\u043d\u044b\u0439.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/810041\/\"> https:\/\/habr.com\/ru\/articles\/810041\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0413\u0430\u0439\u0434 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u0447\u0435\u0440\u0435\u0437 ssh \u0438 docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0432 github. \u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Ubuntu 23.04.<\/p>\n<hr\/>\n<h2>\u041f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f docker-compose.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/h2>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u043c \u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 github actions:<\/p>\n<pre><code class=\"bash\">sudo adduser smith<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044e\u0437\u0435\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c docker \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f<\/p>\n<pre><code class=\"bash\">sudo usermod -aG docker smith<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0437 github, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c ssh \u043a\u043b\u044e\u0447 \u0438 \u0435\u0433\u043e \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438:<\/p>\n<pre><code class=\"bash\">ssh-keygen cp .ssh\/id_rsa.pub .ssh\/authorized_keys<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 github<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c PAT (\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430) \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 &#8212; <a href=\"https:\/\/github.com\/settings\/tokens\" rel=\"noopener noreferrer nofollow\">Personal Access Tokens (Classic) (github.com)<\/a>  . \u0412\u0430\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c. \u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u043e \u0443 \u043d\u0435\u0451 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0432 \u0440\u0435\u043f\u0443 (settings -> Secrets -> Actions):<\/p>\n<ul>\n<li>\n<p>PAT  &#8212; \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>SSH_HOST  &#8212; \u0445\u043e\u0441\u0442 \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>SSH_PRIVATE_KEY  &#8212; \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u044e\u0437\u0435\u0440\u0430 smith<\/p>\n<\/li>\n<li>\n<p>SSH_USER  &#8212; \u0438\u043c\u044f \u044e\u0437\u0435\u0440\u0430, smith<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u0440\u0435\u043f\u0435 \u0444\u0430\u0439\u043b <strong>docker-compose.yml<\/strong> \u0441 \u043d\u0430\u0448\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c:<\/p>\n<pre><code class=\"yaml\">services:   example_app:     container_name: example_app     image: ghcr.io\/your_nick\/example_app:latest     volumes:       - ~\/data:\/app\/data<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c github workflow, \u0444\u0430\u0439\u043b <strong>.github\/workflow\/deploy.yml<\/strong>:<\/p>\n<pre><code class=\"yaml\">name: deploy  on:   pull_request:     types:       - closed     branches: [ \"main\" ]  jobs:      build:         name: Build         runs-on: ubuntu-latest          steps:         - uses: actions\/checkout@v3         - name: Login           run: |             echo ${{ secrets.PAT }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin         - name: Build and Publish           run: |             docker build . --tag ${{ env.DOCKER_TAG }}             docker push ${{ env.DOCKER_TAG }}      deploy:         name: Deploy         runs-on: ubuntu-latest          steps:         - uses: actions\/checkout@v4         - name: install ssh keys           # check this thread to understand why its needed:           # &lt;https:\/\/stackoverflow.com\/a\/70447517>           run: |             install -m 600 -D \/dev\/null ~\/.ssh\/id_rsa             echo \"${{ secrets.SSH_PRIVATE_KEY }}\" > ~\/.ssh\/id_rsa             ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~\/.ssh\/known_hosts         - name: create docker compose config           run: |             cat docker-compose.yml | envsubst > docker-compose-secret.yml         - name: copy docker compose config           run: scp docker-compose-secret.yml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:docker-compose.yml         - name: connect and pull           run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \"docker-compose pull &amp;&amp; docker-compose up -d &amp;&amp; exit\"         - name: cleanup config           if: always()           run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \"rm docker-compose.yml\"         - name: cleanup keys           if: always()           run: rm -rf ~\/.ssh docker-compose-secret.yml <\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u0434\u0435\u043f\u043b\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438 \u043c\u0451\u0440\u0436\u0435 \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u0430.<\/p>\n<p>Docker-compose \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0438\u0437 ghcr.io \u0431\u0435\u0437 \u043a\u0440\u0435\u0434\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u043f\u0430\u043a\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f github \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 packages. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442 \u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Package settings \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043e\u043f\u0446\u0438\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c, \u0442\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e PAT \u0432\u0435\u0437\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043a\u043e\u043d\u0444\u0438\u0433 workflow.<\/p>\n<h2>P.S.:<\/h2>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u043a\u0430\u043a \u0432\u044b \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e github \u0441\u0432\u043e\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0443\u0434\u043e\u0431\u043d\u044b\u0439.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/810041\/\"> https:\/\/habr.com\/ru\/articles\/810041\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-374534","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/374534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374534"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/374534\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}