Compare commits
No commits in common. "main" and "master" have entirely different histories.
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -2,18 +2,14 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Starter Docker Action Test
|
||||
uses: cubetiq/starter-docker-actions@main
|
||||
- name: Starter Docker Test
|
||||
uses: cubetiq/starter-docker-actions@v1
|
||||
with:
|
||||
run: docker version; pwd; ls; docker ps
|
||||
run: docker version
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
.dccache
|
||||
.DS_Store
|
@ -1,6 +1,6 @@
|
||||
FROM cubetiq/calpine-docker:latest
|
||||
FROM docker:latest
|
||||
|
||||
RUN apk update
|
||||
RUN apk add bash
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
```yaml
|
||||
- name: Starter Docker
|
||||
uses: CUBETIQ/starter-docker-actions@main
|
||||
uses: CUBETIQ/starter-docker-actions@v1
|
||||
```
|
||||
|
||||
# Example Action
|
||||
@ -19,7 +19,7 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Starter Docker Test
|
||||
uses: cubetiq/starter-docker-actions@main
|
||||
uses: cubetiq/starter-docker-actions@v1
|
||||
with:
|
||||
shell: sh
|
||||
run: docker version
|
||||
|
@ -1,8 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#### Current working directory is: /github/workspace ####
|
||||
WORKDIR=$(pwd)
|
||||
echo "Working directory => $WORKDIR"
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -z $INPUT_USERNAME ];
|
||||
then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
|
||||
@ -15,15 +11,15 @@ then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK"
|
||||
fi
|
||||
|
||||
if [ -z $INPUT_SHELL ];
|
||||
then INPUT_SHELL=/bin/sh
|
||||
then INPUT_SHELL=sh
|
||||
fi
|
||||
|
||||
if [ -z $INPUT_IMAGE ];
|
||||
then INPUT_IMAGE=cubetiq/calpine-docker
|
||||
then INPUT_IMAGE=docker
|
||||
fi
|
||||
|
||||
if [ -z $semicolon_delimited_script ];
|
||||
then semicolon_delimited_script="echo $(whoami)"
|
||||
fi
|
||||
|
||||
exec docker run --workdir $WORKDIR -v "$WORKDIR":"$WORKDIR" -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
||||
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
Loading…
Reference in New Issue
Block a user