Skip to content

Commit

Permalink
Merge pull request #8 from EvilGenius13/EG-workflow
Browse files Browse the repository at this point in the history
workflow changes
  • Loading branch information
EvilGenius13 authored Oct 1, 2023
2 parents 1ab3dea + ebeab80 commit 073a77e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set DOCKER_TAG to main
run: echo "DOCKER_TAG=main" >> $GITHUB_ENV

- name: Build and push Docker image
run: |
echo "DOCKER_TAG=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
docker build -t evilgenius13/pokeapp:${DOCKER_TAG} .
docker push evilgenius13/pokeapp:${DOCKER_TAG}
3 changes: 2 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on: [push, pull_request]
on:
pull_request:

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions dc-swarm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# App Version: 2.3
version: '3.8' # Newer Docker Compose version. This is a deployment config for portainer with docker swarm. It pulls from the github repo.

volumes:
Expand Down

0 comments on commit 073a77e

Please sign in to comment.