Skip to content

Commit

Permalink
Use more actions (#3)
Browse files Browse the repository at this point in the history
* Using meta action

* Fix tag

* No description update action. See peter-evans/dockerhub-description/issues/10
  • Loading branch information
Cyb3r-Jak3 authored May 23, 2021
1 parent e0aaceb commit 3317792
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:

-
name: Checkout
uses: actions/checkout@v2

- name: Login to Docker
uses: docker/login-action@v1
with:
Expand All @@ -29,6 +33,19 @@ jobs:
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}


- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: cyb3rjak3/pypy-flask,ghcr.io/cyb3r-jak3/pypy-flask,registry.gitlab.com/cyb3r-jak3/pypy-flask
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Set up QEMU
uses: docker/[email protected]

Expand All @@ -50,17 +67,4 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache
push: ${{ github.ref == 'refs/heads/main' }}
file: Dockerfile
tags: |
cyb3rjak3/pypy-flask:latest
ghcr.io/cyb3r-jak3/pypy-flask:latest
registry.gitlab.com/cyb3r-jak3/pypy-flask:latest
# -
# name: Update repo description
# if: ${{ github.ref == 'refs/heads/main' }}
# uses: peter-evans/dockerhub-description@v2
# with:
# readme-filepath: ./Readme.md
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# repository: cyb3rjak3/pypy-flask
# short-description: ${{ github.event.repository.description }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 3317792

Please sign in to comment.