Skip to content

Merge pull request #763 from praekeltfoundation/dependabot/pip/crypto… #787

Merge pull request #763 from praekeltfoundation/dependabot/pip/crypto…

Merge pull request #763 from praekeltfoundation/dependabot/pip/crypto… #787

Workflow file for this run

name: Build docker image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- name: construct image metadata
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: |
ghcr.io/${{ github.repository }}
${{ github.repository }}
tags: |
type=sha
- name: login to ghcr
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: login to docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}