Skip to content

Tries to Fix Docker Build #1403

Tries to Fix Docker Build

Tries to Fix Docker Build #1403

Workflow file for this run

name: Docker Build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- 'master'
jobs:
docker:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: shiptest13/shiptest
flavor: |
latest=auto
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}