Skip to content

Update Dockerfile alpha #100

Update Dockerfile alpha

Update Dockerfile alpha #100

name: Docker Image CI - Pre-Release
on:
push:
paths:
- 'tags/alpha/**'
workflow_dispatch:
repository_dispatch: # For POST request trigger
types: automated-generation
env:
IMAGE_NAME: gama
VERSION: 1.9.3
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file ./tags/alpha/Dockerfile --tag gamaplatform/${{ env.IMAGE_NAME }}:alpha
- name: Publish in Docker Hub
run: |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
# Push alpha
docker push gamaplatform/${{ env.IMAGE_NAME }}:alpha
docker logout
- name: Publish in Github Package
run: |
docker login docker.pkg.github.com -u ${{ secrets.BOT_GH_NAME }} -p ${{ secrets.GITHUB_TOKEN }}
# Push alpha
docker tag gamaplatform/${{ env.IMAGE_NAME }}:alpha docker.pkg.github.com/gama-platform/gama.docker/${{ env.IMAGE_NAME }}:alpha
docker push docker.pkg.github.com/gama-platform/gama.docker/${{ env.IMAGE_NAME }}:alpha
docker logout