Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Debian Slim image to reduce image pull time #7

Merged
merged 2 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,25 @@ jobs:
- name: Code checkout
uses: actions/checkout@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Setup buildx
uses: docker/setup-buildx-action@v1
with:
install: true

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: false
tags: |
ghcr.io/${{ github.repository }}:edge
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:edge
10 changes: 9 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,19 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Setup buildx
uses: docker/setup-buildx-action@v1
with:
install: true

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ steps.get_tag.outputs.VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python
FROM python:slim

RUN pip install yamllint
ENV MATCHERS_DIR="._actionshub_problem-matchers"
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: 'Jason Field'
description: 'Run yamllint on your yaml files with ease'
runs:
using: 'docker'
image: docker://ghcr.io/actionshub/yamllint:1.0.1
image: docker://ghcr.io/actionshub/yamllint:1.0.2
branding:
icon: 'edit-3'
color: 'red'