Skip to content

Commit

Permalink
Create publish_docker_image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirlegendary authored Oct 25, 2024
1 parent f3d6498 commit 916b6f3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_docker_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Publish Playground Docker Image

on:
push:
branches:
- main

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_PACKAGES_PAT }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/devopsplayground/chaos_engineering:latest
labels: ${{ github.sha }}

0 comments on commit 916b6f3

Please sign in to comment.