Documented DockerHub push from GH Actions Marketplace

This commit is contained in:
James Barnsley
2022-03-13 19:58:06 +13:00
parent 659693ae6c
commit 7c663e526a

View File

@ -127,25 +127,26 @@ jobs:
needs: [jest, tox] needs: [jest, tox]
if: github.ref == 'refs/heads/deploy/release' if: github.ref == 'refs/heads/deploy/release'
steps: steps:
- name: Check out the repo -
uses: actions/checkout@v2 name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Log in to Docker Hub -
uses: docker/login-action@v1 name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- name: Extract metadata (tags, labels) for Docker name: Build and push
id: meta
uses: docker/metadata-action@v2
with:
images: jaedb/iris
- name: Build and push Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true
tags:
- jaedb/iris:latest
- '*'
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}