test #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. Checkout кода из репозитория | |
- uses: actions/checkout@v4 | |
# 2 Логин в GitHub Container Registry | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin | |
# 3. Сборка Docker-образа | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ghcr.io/skywar-design/alt-atomic:source | |
# 4. Загрузка Docker-образа в GitHub Container Registry | |
- name: Push the Docker image to GitHub Container Registry | |
run: docker push ghcr.io/skywar-design/alt-atomic:source |