Skip to content

Commit

Permalink
Better handling of docker tags
Browse files Browse the repository at this point in the history
This should result in more sane docker tags
  • Loading branch information
mich181189 committed Dec 3, 2021
1 parent 085a7c7 commit 1971812
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ jobs:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: docker.pkg.github.com/londonhackspace/kube-auth-handler/server
flavor: |
latest=false
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: |
docker.pkg.github.com/londonhackspace/kube-auth-handler/server:${GITHUB_REF##*/}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build_client:
name: Build Clients
runs-on: ubuntu-latest
Expand All @@ -46,4 +53,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}
run: gh release create ${GITHUB_REF##*/} ldap-kube-auth_*
run: gh release create ${GITHUB_REF##*/} auth-client/ldap-kube-auth_*

0 comments on commit 1971812

Please sign in to comment.