Skip to content

Update VERSION

Update VERSION #46

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Extract version
id: version
run: |
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
echo "Version is $VERSION"
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/maximized490/discordradiobot:latest
ghcr.io/maximized490/discordradiobot:${{ env.VERSION }}