Skip to content

Commit

Permalink
fix: revert back to last working v0.1.0 config with the addition of g…
Browse files Browse the repository at this point in the history
…ettext-base
  • Loading branch information
venkatamutyala authored Sep 17, 2022
1 parent bea51bb commit 46c1a06
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 83 deletions.
55 changes: 0 additions & 55 deletions .devcontainer/devcontainer.json

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/build_and_publish_devcontainer.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish Docker image

on:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: glueops/codespaces

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

RUN apt-get update && apt-get -y install gettext-base tmux \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

ENV CLOUDSDK_INSTALL_DIR /usr/local/gcloud/
RUN curl -sSL https://sdk.cloud.google.com | bash
Expand All @@ -17,6 +20,5 @@ RUN gcloud components install alpha --quiet
RUN gcloud components install beta --quiet
RUN sh -c "$(curl --location https://raw.githubusercontent.com/go-task/task/v3.14.1/install-task.sh)" -- -d -b /usr/local/bin/
RUN curl https://stedolan.github.io/jq/download/linux64/jq > /usr/local/bin/jq && sudo chmod +x /usr/local/bin/jq
RUN apt update && apt install tmux -y && apt clean -y
RUN curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v2.4.11/argocd-linux-amd64
RUN chmod +x /usr/local/bin/argocd
RUN chmod +x /usr/local/bin/argocd

0 comments on commit 46c1a06

Please sign in to comment.