Skip to content

Commit

Permalink
Push with docker cli
Browse files Browse the repository at this point in the history
  • Loading branch information
alexerm committed Jun 23, 2024
1 parent 3f7af34 commit 43be010
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ jobs:

- name: Build Packer Image
run: packer build images/ubuntu/templates/ubuntu-22.04.pkr.hcl

- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}:ubuntu-22.04-latest
docker push ghcr.io/${{ github.repository }}:ubuntu-22.04-nightly-$(date +'%Y%m%d')
2 changes: 0 additions & 2 deletions images/ubuntu/templates/ubuntu-22.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ build {
tags = ["ubuntu-22.04-latest", "ubuntu-22.04-nightly-${formatdate("YYYYMMDD", timestamp())}"]
}

post-processor "docker-push" {}

provisioner "shell" {
execute_command = "sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["apt update", "apt install -y sudo lsb-release wget apt-utils"]
Expand Down

0 comments on commit 43be010

Please sign in to comment.