Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-jackson committed Feb 21, 2024
1 parent 894ca98 commit 330746f
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 80 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test and Publish

on:
push:

jobs:
test-app:
name: Test App
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: docker-compose run --rm test ./run-tests.sh

build-and-publish:
name: Build and Publish
needs: test-app
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_ORG }}/auth-proxy
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ caddy

# Local env files
*.env
!test.env
!*example.env

# Other files
Expand Down
56 changes: 0 additions & 56 deletions codeship-services.yml

This file was deleted.

21 changes: 0 additions & 21 deletions codeship-steps.yml

This file was deleted.

2 changes: 0 additions & 2 deletions dockercfg.encrypted

This file was deleted.

0 comments on commit 330746f

Please sign in to comment.