Skip to content

Commit

Permalink
build image with unzip installed
Browse files Browse the repository at this point in the history
  • Loading branch information
fourstepper committed Jul 12, 2024
1 parent 7a3935b commit 05f591f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Docker Image

on:
push:
branches:
- main # Change this to the branch you want to trigger the action on

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository | tolower }}/actions-runner:latest

- name: Image digest
run: echo ${{ steps.build-and-push.outputs.digest }}
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/actions/actions-runner:latest

RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*

0 comments on commit 05f591f

Please sign in to comment.