Skip to content

Correct branch name for github actions #15

Correct branch name for github actions

Correct branch name for github actions #15

Workflow file for this run

name: Build and Push Docker image
on:
push:
branches:
- telegram # Set this to the branch from which you want to deploy
pull_request:
branches:
- telegram # Set this to the branch for which pull requests will trigger the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: gbifnorway/telegram-bot:latest