Giter Site home page Giter Site logo

sudo-bot / action-docker-compose Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 39 KB

A GitHub action for docker-compose

Home Page: https://github.com/docker/compose#readme

License: Mozilla Public License 2.0

Makefile 45.40% Dockerfile 42.40% Shell 12.20%
docker-compose github-actions

action-docker-compose's Introduction

sudo-bot

Actions Status Actions Status codecov npm version Known Vulnerabilities Dependabot

Repo for @sudo-bot

Create automatic PRs for changed files

Using yarn

  • yarn add sudo-bot
  • npx sudo-bot or ./node_modules/.bin/sudo-bot
$ ./node_modules/.bin/sudo-bot --help
Usage: sudo-bot [options]

Create GitHub pull-requests as an app from the CLI

Options:
      --jwt-file <jwtFile>                                     The JWT file for the GitHub app
      --gh-app-id <GitHubAppId>                                The App Id of the GitHub app
      --installation-id <GitHubInstallationId>                 The Installation Id of the GitHub app
      --repository-slug <repositorySlug>                       The slug for the repository ({orgname|username}/{repo})
      --target-branch <targetBranch>                           The target branch for the PR (default: main)
      --assign <usernamesAssigned>                             The GitHub usernames to assign (example: user1, user2)
      --template <templateFile>                                The template to generate PR descriptions
      --ignore-file <ignoreFile>                               The file to use as like a .gitignore file
      --repository-dir <repositoryDir>                         The repository directory (default: /mnt/Dev/@sudo/sudo-bot)
      --commit-author-email <commitAuthorEmail>                The email of the committer
      --commit-author-name <commitAuthorName>                  The name of the committer
      --gpg-private-key-file <gpgPrivateKeyFile>               The file path the to GPG key
      --gpg-private-key-passphrase <gpgPrivateKeyPassphrase>   The passphrase of the GPG key
      --verbose                                                Turn on logging
      --version                                                display version information and exit
      --help                                                   display this help and exit

action-docker-compose's People

Contributors

williamdes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

action-docker-compose's Issues

bug: no longer possible to pass multiple args

Due to the changes in the commits 1ef7f66 and 5e3eedc and the way docker handles arguments, it's no longer possible to have something like

- name: run docker-compose
    uses: sudo-bot/action-docker-compose@latest
    with:
        # https://docs.docker.com/compose/reference/overview/
        cli-args: "up -d"

push does not work with docker login

I am trying to build and push docker images from a dotnet core project. The docker-compose build works, and the docker login succeeds, but it fails to push with a resource denied error.

Github Actions Workflow

name: Push Docker Images

on:
  pull_request:
    types: [closed]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
        token: ${{ secrets.ACCESS_TOKEN }}
    - name: Docker Login
      uses: docker/[email protected]
      with:
        username: ${{ secrets.DOCKERACCT }}
        password: ${{ secrets.DOCKERHUB }}
    - name: docker-compose build
      uses: sudo-bot/action-docker-compose@latest
      with:
        cli-args: -f myapp/docker-compose.yml build --parallel
    - name: docker-compose push
      uses: sudo-bot/action-docker-compose@latest
      with:
        cli-args: -f myapp/docker-compose.yml push

Output

Docker login

Run docker/[email protected] Logging into Docker Hub... Login Succeeded!

docker-compose push

Run sudo-bot/action-docker-compose@latest /usr/bin/docker run --name botsudoactiondockercomposelatest_7978bc --label 9916a7 --workdir /github/workspace --rm -e DOTNET_ROOT -e INPUT_CLI-ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/trading/trading":"/github/workspace" botsudo/action-docker-compose:latest "-f myapp/docker-compose.yml push" ::debug CLI_ARGS: -f myapp/docker-compose.yml push Pushing service-host (myacct/myapp-service-host:latest)... The push refers to repository [docker.io/myacct/myapp-service-host] denied: requested access to the resource is denied

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.