release #11
Workflow file for this run
This file contains 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: release | |
on: | |
create: | |
tags: | |
- v* | |
env: | |
APP_IMAGE_NAME: shlyapnikovan/rails-project-lvl2 | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Push images | |
run: docker pull ${{ env.APP_IMAGE_NAME }}:latest | |
- name: Tagging | |
run: docker tag ${{ env.APP_IMAGE_NAME }}:latest ${{ env.APP_IMAGE_NAME }}:${{ github.ref_name }} | |
- name: Login DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Push image | |
run: docker push ${{ env.APP_IMAGE_NAME }}:${{ github.ref_name }} | |
- name: Pull Caddy | |
run: docker pull shlyapnikovan/caddy_rails_blog:latest | |
- name: Create tag | |
run: docker tag shlyapnikovan/caddy_rails_blog:latest shlyapnikovan/caddy_rails_blog:${{ github.ref_name }} | |
- name: Push Caddy | |
run: docker push shlyapnikovan/caddy_rails_blog:${{ github.ref_name }} |