Skip to content

Commit

Permalink
Add image
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Jan 24, 2024
1 parent 7f8e38e commit 27fe8c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/csyncd-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: csyncd-image

on:
push:
tags:
- '*'

jobs:
build-csyncd-image:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed -e "s/^v//")

- name: Build the image
run: docker build -f csyncd/Dockerfile -t fioncat/csync:${{ steps.get_version.outputs.VERSION }} .

- name: Push the image
run: docker push fioncat/csync:${{ steps.get_version.outputs.VERSION }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- '*'
- 'v0.8.0'

permissions:
contents: write
Expand Down

0 comments on commit 27fe8c5

Please sign in to comment.