Trying to fix push action
Some checks failed
Docker image build / Build docker image (push) Failing after 37s

This commit is contained in:
DaemonGloom 2024-08-06 09:05:33 +05:00
parent 57c125d3dd
commit 233393fc80
2 changed files with 5 additions and 5 deletions

View File

@ -21,10 +21,6 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build test-app
run: make build
working-directory: app
- name: Login to Gitea - name: Login to Gitea
if: github.event_name == 'push' if: github.event_name == 'push'
uses: docker/login-action@v3 uses: docker/login-action@v3
@ -33,6 +29,10 @@ jobs:
username: just_a_test username: just_a_test
password: ${{ secrets.GIT_REGISTRY_PASSWORD }} password: ${{ secrets.GIT_REGISTRY_PASSWORD }}
- name: Build test-app
run: make build
working-directory: app
- name: Publish test-app - name: Publish test-app
run: make publish run: make publish
if: github.event_name == 'push' if: github.event_name == 'push'

View File

@ -11,7 +11,7 @@ start: $(GOBIN)/air
$(GOBIN)/air $(GOBIN)/air
build: build:
docker build . --tag daemongit.dyndns.info/just_a_test/devops-test-app:$(version) docker build . --tag --push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
publish: publish:
docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version) docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)