Try using catthehacker/ubuntu container
This commit is contained in:
parent
c98044dbbc
commit
2abfb10605
@ -2,7 +2,8 @@ name: Build image
|
|||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build-image:
|
build-image:
|
||||||
runs-on: ubuntu-22.04
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -18,17 +19,4 @@ jobs:
|
|||||||
run: nix build .#image-name -o image-name
|
run: nix build .#image-name -o image-name
|
||||||
- run: ls -l
|
- run: ls -l
|
||||||
- run: ls -l $(readlink -f image.tar.gz)
|
- run: ls -l $(readlink -f image.tar.gz)
|
||||||
- name: Install crane
|
- run: docker load < image.tar.gz
|
||||||
run: |
|
|
||||||
curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.20.3/go-containerregistry_Linux_x86_64.tar.gz" > go-containerregistry.tar.gz
|
|
||||||
tar -zxvf go-containerregistry.tar.gz -C /usr/local/bin/ crane
|
|
||||||
|
|
||||||
- run: echo $(cat image-name)
|
|
||||||
|
|
||||||
- run: tar tvf image.tar.gz
|
|
||||||
- run: echo $(readlink -f image.tar.gz)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: tarball
|
|
||||||
path: image.tar.gz
|
|
||||||
- run: crane push $(readlink -f image.tar.gz) $(cat image-name)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user