superfly / flyctl-actions

:octocat: GitHub Action that wraps the flyctl
Apache License 2.0
261 stars 33 forks source link

Issue building with the Docker image #4

Closed tomasz-tomczyk closed 2 years ago

tomasz-tomczyk commented 2 years ago

Getting issues deploying with the action, no recent changes from last working run on the workflow:

2021-08-13T21:58:01.2549286Z Getting action download info
2021-08-13T21:58:01.6425502Z Download action repository 'actions/checkout@v2' (SHA:5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f)
2021-08-13T21:58:03.6594073Z Download action repository 'superfly/flyctl-actions@1.1' (SHA:0141aba3cab6d573e576ca804ccd870d67aff5ca)
2021-08-13T21:58:04.0645058Z Download action repository 'rollbar/github-deploy-action@2.1.1' (SHA:2e6877184ec9e3e90e1d678cc3303021ba427703)
2021-08-13T21:58:04.7806711Z ##[group]Build container for action use: '/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile'.
2021-08-13T21:58:04.7866820Z ##[command]/usr/bin/docker build -t 48c8ce:bd13a96441054e0e9c181b4f51740f49 -f "/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile" "/home/runner/work/_actions/superfly/flyctl-actions/1.1"
2021-08-13T21:58:05.6601135Z Sending build context to Docker daemon  17.92kB
2021-08-13T21:58:05.6601579Z 
2021-08-13T21:58:05.6679815Z Step 1/5 : FROM alpine
2021-08-13T21:58:05.9422518Z latest: Pulling from library/alpine
2021-08-13T21:58:06.1535015Z 29291e31a76a: Pulling fs layer
2021-08-13T21:58:06.5132912Z 29291e31a76a: Verifying Checksum
2021-08-13T21:58:06.5135293Z 29291e31a76a: Download complete
2021-08-13T21:58:06.6926110Z 29291e31a76a: Pull complete
2021-08-13T21:58:06.7005475Z Digest: sha256:eb3e4e175ba6d212ba1d6e04fc0782916c08e1c9d7b45892e9796141b1d379ae
2021-08-13T21:58:06.7033819Z Status: Downloaded newer image for alpine:latest
2021-08-13T21:58:06.7049159Z  ---> 021b3423115f
2021-08-13T21:58:06.7049687Z Step 2/5 : RUN apk add --no-cache curl
2021-08-13T21:58:06.7664928Z  ---> Running in a0e3cd866d0e
2021-08-13T21:58:07.1261177Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
2021-08-13T21:58:07.2559580Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
2021-08-13T21:58:07.4601178Z (1/5) Installing ca-certificates (20191127-r5)
2021-08-13T21:58:07.4871375Z (2/5) Installing brotli-libs (1.0.9-r5)
2021-08-13T21:58:07.5090521Z (3/5) Installing nghttp2-libs (1.43.0-r0)
2021-08-13T21:58:07.5230880Z (4/5) Installing libcurl (7.78.0-r0)
2021-08-13T21:58:07.5413654Z (5/5) Installing curl (7.78.0-r0)
2021-08-13T21:58:07.5568636Z Executing busybox-1.33.1-r3.trigger
2021-08-13T21:58:07.5603952Z Executing ca-certificates-20191127-r5.trigger
2021-08-13T21:58:07.6023633Z OK: 8 MiB in 19 packages
2021-08-13T21:58:08.0165932Z Removing intermediate container a0e3cd866d0e
2021-08-13T21:58:08.0166711Z  ---> e5b3f9e0d07b
2021-08-13T21:58:08.0178217Z Step 3/5 : RUN curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh
2021-08-13T21:58:08.0392449Z  ---> Running in e8c7b6019c20
2021-08-13T21:58:08.3340890Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2021-08-13T21:58:08.3341787Z                                  Dload  Upload   Total   Spent    Left  Speed
2021-08-13T21:58:08.3342573Z 
2021-08-13T21:58:08.5283256Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2021-08-13T21:58:08.5283955Z 100  1492    0  1492    0     0   7766      0 --:--:-- --:--:-- --:--:--  7770
2021-08-13T21:58:08.8623059Z #=#=#                                                                         
2021-08-13T21:58:08.8623820Z 
2021-08-13T21:58:08.9622188Z ######################################################################## 100.0%
2021-08-13T21:58:09.0620867Z                                                                            1.0%
2021-08-13T21:58:09.1027862Z ########################################################                  79.0%
2021-08-13T21:58:09.1028367Z ######################################################################## 100.0%
2021-08-13T21:58:09.9244496Z The command '/bin/sh -c curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh' returned a non-zero code: 1
2021-08-13T21:58:09.9267222Z 
2021-08-13T21:58:09.9287090Z ##[warning]Docker build failed with exit code 1, back off 8.113 seconds before retry.
2021-08-13T21:58:18.0448722Z ##[command]/usr/bin/docker build -t 48c8ce:bd13a96441054e0e9c181b4f51740f49 -f "/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile" "/home/runner/work/_actions/superfly/flyctl-actions/1.1"
2021-08-13T21:58:18.0977553Z Sending build context to Docker daemon  17.92kB
2021-08-13T21:58:18.0978309Z 
2021-08-13T21:58:18.1618652Z Step 1/5 : FROM alpine
2021-08-13T21:58:18.1622967Z  ---> 021b3423115f
2021-08-13T21:58:18.1630260Z Step 2/5 : RUN apk add --no-cache curl
2021-08-13T21:58:18.1636460Z  ---> Using cache
2021-08-13T21:58:18.1641159Z  ---> e5b3f9e0d07b
2021-08-13T21:58:18.1646372Z Step 3/5 : RUN curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh
2021-08-13T21:58:18.1964754Z  ---> Running in e33914321225
2021-08-13T21:58:18.4724241Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2021-08-13T21:58:18.4725278Z                                  Dload  Upload   Total   Spent    Left  Speed
2021-08-13T21:58:18.4725913Z 
2021-08-13T21:58:18.6200250Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2021-08-13T21:58:18.6200810Z 100  1492    0  1492    0     0  10025      0 --:--:-- --:--:-- --:--:-- 10081
2021-08-13T21:58:19.0017009Z #=#=#                                                                         
2021-08-13T21:58:19.0773439Z 
2021-08-13T21:58:19.1786956Z ######################################################################## 100.0%
2021-08-13T21:58:19.2791065Z                                                                            0.0%
2021-08-13T21:58:19.3489211Z #################                                                         23.7%
2021-08-13T21:58:19.3490703Z ######################################################################## 100.0%
2021-08-13T21:58:20.0558736Z The command '/bin/sh -c curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh' returned a non-zero code: 1
2021-08-13T21:58:20.0559579Z 
2021-08-13T21:58:20.0569100Z ##[warning]Docker build failed with exit code 1, back off 9.698 seconds before retry.
2021-08-13T21:58:29.7562258Z ##[command]/usr/bin/docker build -t 48c8ce:bd13a96441054e0e9c181b4f51740f49 -f "/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile" "/home/runner/work/_actions/superfly/flyctl-actions/1.1"
2021-08-13T21:58:29.8189258Z Sending build context to Docker daemon  17.92kB
2021-08-13T21:58:29.8198231Z 
2021-08-13T21:58:29.8819087Z Step 1/5 : FROM alpine
2021-08-13T21:58:29.8821023Z  ---> 021b3423115f
2021-08-13T21:58:29.8823114Z Step 2/5 : RUN apk add --no-cache curl
2021-08-13T21:58:29.8824841Z  ---> Using cache
2021-08-13T21:58:29.8827073Z  ---> e5b3f9e0d07b
2021-08-13T21:58:29.8830712Z Step 3/5 : RUN curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh
2021-08-13T21:58:29.9036225Z  ---> Running in f428f382928e
2021-08-13T21:58:30.2116735Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2021-08-13T21:58:30.2127090Z                                  Dload  Upload   Total   Spent    Left  Speed
2021-08-13T21:58:30.2127608Z 
2021-08-13T21:58:30.3291196Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2021-08-13T21:58:30.3291807Z 100  1492    0  1492    0     0  12871      0 --:--:-- --:--:-- --:--:-- 12973
2021-08-13T21:58:30.5979859Z #=#=#                                                                         
2021-08-13T21:58:30.6654134Z 
2021-08-13T21:58:30.7863239Z ######################################################################## 100.0%
2021-08-13T21:58:30.8867483Z                                                                            0.1%
2021-08-13T21:58:30.9873238Z ##                                                                         4.0%
2021-08-13T21:58:31.0876779Z #######                                                                   10.3%
2021-08-13T21:58:31.1883071Z ##############                                                            19.7%
2021-08-13T21:58:31.2890241Z ########################                                                  34.0%
2021-08-13T21:58:31.3904294Z #######################################                                   55.4%
2021-08-13T21:58:31.4241873Z ##############################################################            86.3%
2021-08-13T21:58:31.4242551Z ######################################################################## 100.0%
2021-08-13T21:58:32.1657478Z The command '/bin/sh -c curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh' returned a non-zero code: 1
2021-08-13T21:58:32.1658325Z 
2021-08-13T21:58:32.1663512Z ##[endgroup]
2021-08-13T21:58:32.1787171Z ##[error]Docker build failed with exit code 1
2021-08-13T21:58:32.1949602Z Cleaning up orphan processes

Workflow bit:

  deploy:
    name: Deploy
    needs:
      - static-code-analysis
      - mix-test
    if: github.ref == 'refs/heads/master'
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - name: Checkout Github repo
        uses: actions/checkout@v2
      - name: Deploy to fly.io
        uses: superfly/flyctl-actions@1.1
        env:
          FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
        with:
          args: "deploy"

Any thoughts? Thanks!

tomasz-tomczyk commented 2 years ago

Seems to have resolved itself - closing