Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed May 13, 2022
1 parent 947b6c7 commit e2b8ff5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: Release

on:
push:
tags:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
docker_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volesen/[email protected]
with:
version: 'v1.38.0'
- uses: extractions/setup-just@v1
- name: release version
id: theVersion
run: echo "::set-output name=theVersion::$(echo ${GITHUB_REF##*/})"
- name: login to dockerhub
uses: docker/login-action@v1
- uses: volesen/[email protected]
with:
version: v1.38.0
- uses: extractions/setup-just@v1
- uses: imjasonh/[email protected]
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
5 changes: 2 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ build-release:
_latest:
#!/bin/sh
if [ "openpolicyagent" == "${SKAFFOLD_IMAGE_REPO}" ]; then
docker tag ${SKAFFOLD_IMAGE} openpolicyagent/kube-mgmt:latest
docker push openpolicyagent/kube-mgmt:latest
if [ -n "$(echo ${SKAFFOLD_IMAGE_REPO}|grep '^openpolicyagent$')" ]; then
crane tag ${SKAFFOLD_IMAGE} latest
fi

test-go:
Expand Down

0 comments on commit e2b8ff5

Please sign in to comment.