Update main.yml

This commit is contained in:
gadotroee 2021-04-29 13:11:57 +03:00 committed by GitHub
parent 47de114866
commit 0dc41e125e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,11 +9,15 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: crazy-max/ghaction-docker-meta@v2 uses: crazy-max/ghaction-docker-meta@v2
with: with:
images: gcr.io/up9-docker-hub/mizu/${{ github.ref }} images: gcr.io/up9-docker-hub/mizu/${{ steps.extract_branch.outputs.branch }}
tags: | tags: |
type=sha type=sha
type=raw,${{ github.sha }} type=raw,${{ github.sha }}