This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
upload new container #47
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: upload new container | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Update legacy version | |
run: | | |
sed -E -i "s/(LEGACY_VERSION = \")(v[0-9.]+)(\")/\1v${{ github.event.release.tag_name }}\3/" src/edge.py | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add . | |
git commit -m "Automated legacy version update" | |
git push origin HEAD:master | |
docker: | |
needs: version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
tags: scmanjarrez/edgegpt-telegram-bot:latest | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 |