Skip to content

Commit

Permalink
Install Docker plugin for Packer separately
Browse files Browse the repository at this point in the history
This is now required, since the latest version of Packer.
  • Loading branch information
TimoWilken committed Feb 8, 2024
1 parent 12bb837 commit 0a45063
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/check-image-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Validate Packer images
- push
- pull_request

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
Expand All @@ -17,6 +20,7 @@ jobs:
run: |
sudo apt update -y
sudo apt install -y packer
packer plugins install github.com/hashicorp/docker
- name: Validate Packer images
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
---
# Build and push the selected docker image from a packer config.

name: Push Docker image

# Controls when the action will run: manual trigger with a parameter
on:
'on':
workflow_dispatch:
inputs:
image-name:
description: Docker image to build
required: true
default: slc8-builder

permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand All @@ -36,6 +40,7 @@ jobs:
apt install -y software-properties-common
add-apt-repository universe
apt install -y docker.io packer
packer plugins install github.com/hashicorp/docker
env:
DEBIAN_FRONTEND: noninteractive

Expand Down

0 comments on commit 0a45063

Please sign in to comment.