build(deps): bump github.com/redis/go-redis/v9 from 9.4.0 to 9.5.1 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
if: ${{ !contains(github.event.head_commit.message, '(skip)') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set variables | |
id: vars | |
run: echo "sha_short=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT" | |
- uses: vanilla-os/[email protected] | |
with: | |
recipe: 'recipe.yml' | |
- name: Build the Docker image | |
run: docker build . --file Containerfile --tag vanilla-os/chronos:${{ github.ref_name }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Containerfile | |
path: Containerfile | |
# Push the image to GHCR (Image Registry) | |
- name: Push To GHCR | |
if: github.repository == 'Vanilla-OS/Chronos' | |
run: | | |
docker tag vanilla-os/chronos:${{ github.ref_name }} ghcr.io/vanilla-os/chronos:${{ github.ref_name }} | |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }} | |
docker image push "ghcr.io/vanilla-os/chronos:${{ github.ref_name }}" |