Skip to content

Commit

Permalink
v0.0.6 pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicMegaNerd committed Dec 24, 2024
1 parent 1e8de0c commit 1636637
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
65 changes: 36 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,41 +49,48 @@ jobs:
name: Build and Publish Docker image
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Read version
id: get_version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: atomicmeganerd/starfeed
tags: |
latest
${{ env.VERSION }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Checkout code
uses: actions/checkout@v3

- name: Read version
id: get_version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: atomicmeganerd/starfeed
tags: |
latest
${{ env.VERSION }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}

tag_and_release:
runs-on: ubuntu-latest
name: Tag and create release
needs: publish_docker_image
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Read version
id: get_version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV

- name: Create Git tag
run: git tag ${{ env.VERSION }} && git push origin ${{ env.VERSION }}
env:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.6] - 2024-12-25

### Added

- Added a github action to build and push the Docker image to Docker Hub.

## [0.0.5] - 2024-12-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.5
v0.0.6

0 comments on commit 1636637

Please sign in to comment.