Skip to content

Deploy feature branch #26

Deploy feature branch

Deploy feature branch #26

Workflow file for this run

name: Deploy feature branch
on:
workflow_dispatch:
# push:
# branches:
# - feature/*
jobs:
deploy:
name: Deploy to AWS
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Get tag
id: version-tag
uses: ./.github/actions/get-version-tag
- name: Build Docker image
uses: ./.github/actions/docker-build
with:
version: ${{ steps.version-tag.outputs.version-tag }} # (feature/abc)
github-token: ${{ secrets.GITHUB_TOKEN }}
docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }}
# - name: Install AWS CLI
# uses: ./.github/actions/install-aws
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# TODO: Deploy new feature environment