Skip to content

Commit 20ed16b

Browse files
committed
Added new GitHub action to auto-publish a Docker container for dev & pipeline usage
1 parent e7a1e5d commit 20ed16b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Docker Container
2+
3+
on: [push]
4+
# on:
5+
# push:
6+
# branches:
7+
# - main
8+
# paths:
9+
# - .github/workflows/**
10+
# pull_request:
11+
# types: [opened, synchronize, reopened]
12+
# paths:
13+
# - .github/workflows/**
14+
15+
jobs:
16+
build-and-push:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
packages: write
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: docker/setup-buildx-action@v3
24+
25+
- uses: docker/login-action@v3
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GH_TOKEN_PUBLISH_DOCKER_IMAGE }}
30+
31+
- uses: docker/build-push-action@v5
32+
with:
33+
context: .
34+
file: .devcontainer/Dockerfile
35+
push: true
36+
tags: ghcr.io/${{ github.repository_owner }}/nebula-logger-dev:latest

0 commit comments

Comments
 (0)