Skip to content

⬆️ Bump docker/setup-buildx-action from 2.5.0 to 2.9.1 (#406) #62

⬆️ Bump docker/setup-buildx-action from 2.5.0 to 2.9.1 (#406)

⬆️ Bump docker/setup-buildx-action from 2.5.0 to 2.9.1 (#406) #62

name: Docker
on:
push:
branches: [master, main]
tags:
- v*
env:
IMAGE_NAME: website
DJANGO_SETTINGS_MODULE: website.settings
jobs:
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.1
- name: Login to DockerHub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4.0.0
with:
push: true
tags: eduzen/website:latest
target: production
file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}