Skip to content

Docker Build Only

Docker Build Only #2

Workflow file for this run

name: Docker Image CI (Manual Build Only)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Docker meta
id: meta
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4.6.0
with:
images: |
netflixoss/metaflow_metadata_service
tags: |
type=semver,pattern={{raw}}
type=sha
type=raw,value=latest
#- name: Login to Docker Hub
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
# with:
# username: ${{ secrets.DOCKER_USERNAME_NETFLIX_OSS }}
# password: ${{ secrets.DOCKER_AUTH_TOKEN_NETFLIX_OSS }}
- name: Build (No Push)
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: .

Check failure on line 39 in .github/workflows/dockerimage.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI (Manual Build Only)

Invalid workflow file

The workflow is not valid. .github/workflows/dockerimage.yml (Line: 39, Col: 11): 'context' is already defined .github/workflows/dockerimage.yml (Line: 40, Col: 11): 'push' is already defined
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}