Skip to content

Commit

Permalink
use github-actions REF_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Jan 5, 2023
1 parent 3b1f6fc commit b5543ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_tag_cryptobot_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ jobs:
- name: docker build latest
run:
./run build TAG=latest
docker -t ghcr.io/azulinho/cryptobot:latest ghcr.io/azulinho/cryptobot:${DOCKER_TAG}
docker -t ghcr.io/azulinho/cryptobot:latest ghcr.io/azulinho/cryptobot:${{ git.ref_name }}

- name: docker push latest and tag
run:
DOCKER_TAG=`git tag --sort=version:refname|tail -1`
docker push ghcr.io/azulinho/cryptobot:latest
docker push ghcr.io/azulinho/cryptobot:${DOCKER_TAG}
docker push ghcr.io/azulinho/cryptobot:${{ git.ref_name }}

- name: sets python version to pyston
run: |
Expand Down

0 comments on commit b5543ab

Please sign in to comment.