Skip to content

Commit

Permalink
Change docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mczachurski committed Feb 15, 2024
1 parent d21b121 commit 9a8bc1b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install swift
uses: SwiftyLab/setup-swift@latest
with:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Fly Deploy
on:
push:
branches:
- main
- develop

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: docker login
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push (main)
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
mczachurski/vernissage-server:latest
mczachurski/vernissage-server:1.0.0
- name: Build and push (develop)
if: github.ref == 'refs/heads/develop'
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
mczachurski/vernissage-server:develop
mczachurski/vernissage-server:1.0.0-alpha
33 changes: 0 additions & 33 deletions .github/workflows/fly.yml

This file was deleted.

0 comments on commit 9a8bc1b

Please sign in to comment.