Skip to content

feat: ✨ Add web API and remove useless Discord functionality #14

feat: ✨ Add web API and remove useless Discord functionality

feat: ✨ Add web API and remove useless Discord functionality #14

Workflow file for this run

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