Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverMendel committed Aug 19, 2021
1 parent 6994b63 commit d960b4d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-docker-image-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Docker Image On Release

on:
push:
tags:
- 'v*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: nevermendel/docker-xelatex-awesome-cv
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
10 changes: 1 addition & 9 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'master'
Expand All @@ -16,11 +14,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: nevermendel/docker-xelatex-awesome-cv
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
Expand All @@ -32,5 +25,4 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: nevermendel/docker-xelatex-awesome-cv:latest

0 comments on commit d960b4d

Please sign in to comment.