Skip to content

Commit

Permalink
Optimize GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh committed Feb 1, 2024
1 parent 58c48bf commit 150bb6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: |
make test
push:
docker:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand Down Expand Up @@ -74,12 +66,16 @@ jobs:
docker tag ${{ env.IMAGE_ID }}:latest-full ${{ env.IMAGE_ID }}:${{ env.version }}
docker tag ${{ env.IMAGE_ID }}:latest-full ghcr.io/${{ env.IMAGE_ID }}:${{ env.version }}
- name: Login to DockerHub
- name: Run tests
run: |
make test
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# LaTeX in Docker

![GitHub license](https://img.shields.io/github/license/kjarosh/latex-docker)
![GitHub build status](https://img.shields.io/github/actions/workflow/status/kjarosh/latex-docker/docker-publish.yml?branch=main)
![GitHub build status](https://img.shields.io/github/actions/workflow/status/kjarosh/latex-docker/docker.yml?branch=main)
[![GitHub release](https://img.shields.io/github/v/release/kjarosh/latex-docker)](https://github.com/kjarosh/latex-docker/releases)
[![DockerHub](https://img.shields.io/badge/docker.io-kjarosh%2Flatex-blue)](https://hub.docker.com/r/kjarosh/latex)
[![GitHub Container Registry](https://img.shields.io/badge/ghcr.io-kjarosh%2Flatex-blue)](https://github.com/users/kjarosh/packages/container/package/latex)
Expand Down

0 comments on commit 150bb6c

Please sign in to comment.