Skip to content

Merge pull request #24 from Luois45/dev #6

Merge pull request #24 from Luois45/dev

Merge pull request #24 from Luois45/dev #6

Workflow file for this run

name: Docker Image Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_TOKEN }}
- name: Extract Version Tag
id: extract_tag
run: echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
luois45/skinbaronbot_v2:${{ env.VERSION_TAG }}
luois45/skinbaronbot_v2:latest
ghcr.io/luois45/skinbaronbot_v2:${{ env.VERSION_TAG }}
ghcr.io/luois45/skinbaronbot_v2:latest
- name: Update Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: luois45/skinbaronbot_v2
readme-filepath: ./DockerHub-README.md