Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4f2e83b
poc-github-packages
RichmondRamil Aug 13, 2024
ee7f87f
chore: Update deploy-image.yml to use the repository name as the imag…
RichmondRamil Aug 13, 2024
03184e4
chore: Update Dockerfile to echo "Hello World Altus"
RichmondRamil Aug 13, 2024
f3e70d2
chore: Update deploy-image.yml to use a specific image name
RichmondRamil Aug 13, 2024
d5190f7
chore: Update deploy-image.yml to use a custom image name with branch…
RichmondRamil Aug 13, 2024
f170c75
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
300fbca
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
e344918
chore: Update deploy-image.yml to use repository name as the image name
RichmondRamil Aug 13, 2024
b890381
chore: Update deploy-image.yml to use a custom image name with branch…
RichmondRamil Aug 13, 2024
39ef390
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
e9d1470
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
ac26251
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
bd1695d
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
bf89ad0
chore: move docker file
RichmondRamil Aug 13, 2024
ef9167b
chore: Update deploy-image.yml to use relative paths for Dockerfiles
RichmondRamil Aug 13, 2024
039e20f
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
01852fc
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 13, 2024
dd3d242
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 15, 2024
1c25fca
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 15, 2024
cfd89ce
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 15, 2024
3f43e47
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 15, 2024
5f8de0f
chore: Update deploy-image.yml to use consistent image naming
RichmondRamil Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./client/Dockerfile
image: ghcr.io/richmondramil/client
- dockerfile: ./server/Dockerfile
image: ghcr.io/richmondramil/server
permissions:
contents: read
packages: write
Expand All @@ -24,19 +32,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=sha
- name: Generate date-based tag
id: date-tag
run: echo "DATE_TAG=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ matrix.image }}:latest
${{ matrix.image }}-${{ env.DATE_TAG }}
labels: |
org.opencontainers.image.source=${{ github.repositoryUrl }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ env.DATE_TAG }}
2 changes: 0 additions & 2 deletions Dockerfile

This file was deleted.

2 changes: 2 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM alpine
CMD [ "echo", "Hello World Altus Client" ]
2 changes: 2 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM alpine
CMD [ "echo", "Hello World Altus Server" ]