Skip to content

Publish on Docker Hub (#11) #2

Publish on Docker Hub (#11)

Publish on Docker Hub (#11) #2

Workflow file for this run

name: Publish
on:
push:
tags: ["*.*.*"]
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Docker login
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
username: ${{ secrets.WORKLEAP_DOCKERHUB_USERNAME }}
password: ${{ secrets.WORKLEAP_DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5
with:
images: workleap/azure-cli-credentials-proxy
- name: Docker build and push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}