Fix actions

Former-commit-id: e9e1884fb7728e622357ec0ce1705fa2c845248c
This commit is contained in:
milesial 2021-08-18 00:26:11 +02:00 committed by GitHub
parent 6f3320edbc
commit f0381301bb

View file

@ -6,9 +6,12 @@ on:
jobs: jobs:
push_to_registry: push_to_registry:
name: Push Docker image to Docker Hub name: Push Docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
uses: actions/checkout@v2
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
@ -30,9 +33,10 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v1
with: with:
context: . context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: |
labels: ${{ steps.meta.outputs.labels }} milesial/unet:latest
ghcr.io/milesial/unet:latest