Skip to content

Bump the github-actions group with 11 updates #320

Bump the github-actions group with 11 updates

Bump the github-actions group with 11 updates #320

Workflow file for this run

name: Build and push docker
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: ubuntu-latest
env:
HAVE_DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN != '' }}
steps:
- uses: actions/checkout@v7
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
if: ${{ env.HAVE_DOCKERHUB_TOKEN == 'true' }}
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
if: ${{ env.HAVE_DOCKERHUB_TOKEN == 'true' }}
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
push: true
tags: GIT_USERNAME/GIT_REPONAME:latest