Skip to content

Merge pull request #8 from gattaca-com/propagation_duration_config #2

Merge pull request #8 from gattaca-com/propagation_duration_config

Merge pull request #8 from gattaca-com/propagation_duration_config #2

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
path: ./repos/${{ secrets.REPO_NAME }}
- name: Run Dockerfile
env:
DOCKER_REG_USR: ${{ secrets.DOCKER_REG_USR }}
DOCKER_REG_PW: ${{ secrets.DOCKER_REG_PW }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
REPO_NAME: ${{ secrets.REPO_NAME }}
run: |
IMAGE_NAME=latest
DOCKER_BUILDKIT=1 docker build -t helix:$IMAGE_NAME --build-arg AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -f ./repos/$REPO_NAME/Dockerfile .
DOCKER_BUILDKIT=1 docker tag helix:$IMAGE_NAME $REGISTRY_URL/helix:$IMAGE_NAME
DOCKER_BUILDKIT=1 docker login https://$REGISTRY_URL/ -u "$DOCKER_REG_USR" -p "$DOCKER_REG_PW"
DOCKER_BUILDKIT=1 docker push $REGISTRY_URL/helix:$IMAGE_NAME