Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickp authored Feb 10, 2024
1 parent 547f2d3 commit d3b8a2a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build the go Docker image
run: |
docker build . --file go/Dockerfile --tag glue-go:$(date +%s)
docker push ghcr.io/dominickp/store:latest
- name: Build the python Docker image
run: |
docker build . --file python/Dockerfile --tag glue-python:$(date +%s)
docker push ghcr.io/dominickp/store:latest
- name: Build the javascript Docker image
run: |
docker build . --file go/Dockerfile --tag glue-javascript:$(date +%s)
docker push ghcr.io/dominickp/store:latest

0 comments on commit d3b8a2a

Please sign in to comment.