Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ env:
COMPOSE_FILE: docker-compose.ci.yml
TEST_IMAGE_REPO: ghcr.io/gsa/api.data.gov

permissions:
contents: write
packages: write

jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,6 +99,15 @@ jobs:
name: build-${{ matrix.deploy_env }}
path: ./public

# Push production builds to "build-history" branch to maintain history of
# built and deployed versions.
- name: Commit Build History
if: success() && github.repository_owner == 'GSA' && github.ref == 'refs/heads/main' && matrix.deploy_env == 'production'
uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0
with:
folder: ./public
branch: build-history

deploy:
if: success() && github.repository_owner == 'GSA' && github.ref == 'refs/heads/main'
needs: build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/docker/library/node:20-bookworm-slim
FROM docker.io/library/node:20-bookworm-slim

ARG TARGETARCH

Expand Down
Loading