Skip to content

Commit

Permalink
first shot on docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
leneffets committed Nov 15, 2024
1 parent 9785c18 commit 2e8bf03
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go CI
name: SSM Server CI

on:
push:
Expand Down Expand Up @@ -33,3 +33,29 @@ jobs:
with:
name: ssmserver
path: ./output/ssmserver

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

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

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

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

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/ssmserver:latest

0 comments on commit 2e8bf03

Please sign in to comment.