update to 18.2.7 (#53) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy GitLab | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Deploy image | |
| run: | | |
| export RELEASE=$(grep "RELEASE_VERSION=" Dockerfile | sed 's|^.*=||g' |awk '{print $1}') | |
| docker pull polinux/gitlab-ce:stage | |
| docker tag polinux/gitlab-ce:stage polinux/gitlab-ce:${RELEASE} | |
| docker tag polinux/gitlab-ce:stage polinux/gitlab-ce:latest | |
| docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASS }} | |
| docker push polinux/gitlab-ce:${RELEASE} | |
| docker push polinux/gitlab-ce:latest |