feat: ✨ Add web API and remove useless Discord functionality #14
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: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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 | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Get current date | |
run: | | |
echo "NOW=$(date '+%Y-%m-%dT%H_%M_%SZ')" >> $GITHUB_ENV | |
- name: Build the Docker image and push to Docker Hub | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
run: docker buildx build . --file Dockerfile --tag ${DOCKER_USER}/polimi-wabot:${NOW} --tag ${DOCKER_USER}/polimi-wabot:latest --platform linux/amd64,linux/arm64 --push |