Skip to content

Commit

Permalink
Merge pull request #1 from apsislabs/eb-as-root
Browse files Browse the repository at this point in the history
EB CLI as System
  • Loading branch information
egreer authored Feb 5, 2021
2 parents 7e56200 + 5f5bd8c commit 4cf311f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/${{ github.repository }}
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand All @@ -66,7 +66,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ RUN apt-get update \
&& apt-get install -y -qq jq \
&& apt-get clean \
&& pip install awscli \
&& pip install awsebcli --upgrade --user \
&& pip install awsebcli --upgrade \
&& curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest \
&& chmod +x /usr/local/bin/ecs-cli

# Configure the local bins
ENV PATH="~/.local/bin:${PATH}"
ENV PATH="/root/.local/bin:${PATH}"

# Install Docker
RUN curl -sSL https://get.docker.com/ | sh
Expand Down

0 comments on commit 4cf311f

Please sign in to comment.