Skip to content

Commit

Permalink
Build v0
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Sep 12, 2024
1 parent 70abf58 commit 4c34901
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 4c34901

Please sign in to comment.