Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhaev26 authored Dec 20, 2024
1 parent 33492e6 commit 314f84c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Publish Docker Image

on:
push:
branches:
- dev
paths:
- '**/Dockerfile'
- '**/docker-compose.yml'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./docker/
file: Dockerfile
push: true
tags: ghcr.io/p-society/gc-broadcast:latest

0 comments on commit 314f84c

Please sign in to comment.