From 4c3490196822fdcd6e9fbcba2be377515867186e Mon Sep 17 00:00:00 2001 From: GussevPM Date: Thu, 12 Sep 2024 18:59:05 +0200 Subject: [PATCH] Build v0 --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8049451 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build and Push Docker Image + +on: + push: + tags: + - 'v*' + branches: + - test-build + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Docker Image + run: | + docker build -t ghcr.io/${{ github.repository }}/astrotrek-interface:${{ github.ref_name }} . + + - name: Push Docker Image to GitHub Container Registry + run: | + docker push ghcr.io/${{ github.repository }}/astrotrek-interface:${{ github.ref_name }}